[llvm] r205304 - Fixing an MSVC warning about widening the result of a 32-bit shift implicitly. No functional change intended.
Aaron Ballman
aaron at aaronballman.com
Tue Apr 1 05:24:25 PDT 2014
Author: aaronballman
Date: Tue Apr 1 07:24:25 2014
New Revision: 205304
URL: http://llvm.org/viewvc/llvm-project?rev=205304&view=rev
Log:
Fixing an MSVC warning about widening the result of a 32-bit shift implicitly. No functional change intended.
Modified:
llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MachObjectWriter.cpp
Modified: llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MachObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MachObjectWriter.cpp?rev=205304&r1=205303&r2=205304&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MachObjectWriter.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MachObjectWriter.cpp Tue Apr 1 07:24:25 2014
@@ -334,7 +334,7 @@ void ARM64MachObjectWriter::RecordReloca
if (IsPCRel)
Value -= Writer->getFragmentAddress(Fragment, Layout) +
- Fixup.getOffset() + (1 << Log2Size);
+ Fixup.getOffset() + (1ULL << Log2Size);
} else {
// Resolve constant variables.
if (SD.getSymbol().isVariable()) {
More information about the llvm-commits
mailing list