silence a vc2010 warning: " result of 32-bit shift implicitly converted to
authorChris Lattner <sabre@nondot.org>
Mon, 16 Aug 2010 16:35:20 +0000 (16:35 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 16 Aug 2010 16:35:20 +0000 (16:35 +0000)
64 bits (was 64-bit shift intended?)", pointed out by 'nobled' on llvmdev

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111148 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MachObjectWriter.cpp

index 7ca09511bdebd2515c3db3a83ce80d0af6c04ec1..cffabfadb316531cef37afb4f2600a1ab94a960c 100644 (file)
@@ -769,7 +769,7 @@ public:
       IsPCRel = 1;
       FixedValue = (FixupAddress - Layout.getSymbolAddress(SD_B) +
                     Target.getConstant());
       IsPCRel = 1;
       FixedValue = (FixupAddress - Layout.getSymbolAddress(SD_B) +
                     Target.getConstant());
-      FixedValue += 1 << Log2Size;
+      FixedValue += 1ULL << Log2Size;
     } else {
       FixedValue = 0;
     }
     } else {
       FixedValue = 0;
     }