Fix UBSan test error from r248897 about left shift of unsigned value.
authorTeresa Johnson <tejohnson@google.com>
Thu, 8 Oct 2015 13:14:59 +0000 (13:14 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 8 Oct 2015 13:14:59 +0000 (13:14 +0000)
commitdd7476cff001cc6970057f4557dbc370453c051f
tree9050922e79523e6435f24f2e761573e40bd0b831
parentf98727a18268543b2026c0f6d5179ecbf3c6d34a
Fix UBSan test error from r248897 about left shift of unsigned value.

Fixed by masking off the upper bits that we are shifting off before
doing the left shift.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249689 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Endian.h