[llvm-commits] [llvm] r111148 - /llvm/trunk/lib/MC/MachObjectWriter.cpp
Chris Lattner
sabre at nondot.org
Mon Aug 16 09:35:20 PDT 2010
Author: lattner
Date: Mon Aug 16 11:35:20 2010
New Revision: 111148
URL: http://llvm.org/viewvc/llvm-project?rev=111148&view=rev
Log:
silence a vc2010 warning: " result of 32-bit shift implicitly converted to
64 bits (was 64-bit shift intended?)", pointed out by 'nobled' on llvmdev
Modified:
llvm/trunk/lib/MC/MachObjectWriter.cpp
Modified: llvm/trunk/lib/MC/MachObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MachObjectWriter.cpp?rev=111148&r1=111147&r2=111148&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MachObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/MachObjectWriter.cpp Mon Aug 16 11:35:20 2010
@@ -769,7 +769,7 @@
IsPCRel = 1;
FixedValue = (FixupAddress - Layout.getSymbolAddress(SD_B) +
Target.getConstant());
- FixedValue += 1 << Log2Size;
+ FixedValue += 1ULL << Log2Size;
} else {
FixedValue = 0;
}
More information about the llvm-commits
mailing list