diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-24 23:43:39 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-24 23:43:39 +0000 |
commit | c831d8b977a09bf2907d03128b48b5c914a2fafd (patch) | |
tree | 78bf3efb86abbf7d084f1768be4605b190fbf91d /lib/CodeGen/CGRTTI.cpp | |
parent | 0d3a3fd7211a1b368d1f8c0d7ca1cfd40d31a0ea (diff) |
Fix integer unsigned behavior in clang due to signed left shift overflow.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGRTTI.cpp')
-rw-r--r-- | lib/CodeGen/CGRTTI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGRTTI.cpp b/lib/CodeGen/CGRTTI.cpp index eca9f5b16b..e46423b95a 100644 --- a/lib/CodeGen/CGRTTI.cpp +++ b/lib/CodeGen/CGRTTI.cpp @@ -886,7 +886,7 @@ void RTTIBuilder::BuildVMIClassTypeInfo(const CXXRecordDecl *RD) { Offset = Layout.getBaseClassOffset(BaseDecl); }; - OffsetFlags = Offset.getQuantity() << 8; + OffsetFlags = uint64_t(Offset.getQuantity()) << 8; // The low-order byte of __offset_flags contains flags, as given by the // masks from the enumeration __offset_flags_masks. |