]> granicus.if.org Git - clang/commitdiff
Attempt to fix the 32-bit test failures.
authorAnders Carlsson <andersca@mac.com>
Thu, 18 Feb 2010 18:20:49 +0000 (18:20 +0000)
committerAnders Carlsson <andersca@mac.com>
Thu, 18 Feb 2010 18:20:49 +0000 (18:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96595 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVtable.cpp

index 6ab6a60a92bd4d8a50bf5a6bba9b5b8dadaa5ed7..15cfc68b0b9bbac6a966fc8c774010e73f7ece73 100644 (file)
@@ -1118,7 +1118,7 @@ void VtableBuilder::AddVCallOffsets(BaseSubobject Base) {
     // address point. (We subtract 3 to account for the information just
     // above the address point, the RTTI info, the offset to top, and the
     // vcall offset itself).
-    int64_t OffsetIndex = -(3 + VCallAndVBaseOffsets.size());
+    int64_t OffsetIndex = -(int64_t)(3 + VCallAndVBaseOffsets.size());
     
     // FIXME: We shouldn't use / 8 here.
     int64_t OffsetOffset = OffsetIndex *