[llvm-commits] [llvm] r121880 - /llvm/trunk/lib/MC/MCAssembler.cpp
Owen Anderson
resistor at mac.com
Wed Dec 15 11:24:24 PST 2010
Author: resistor
Date: Wed Dec 15 13:24:24 2010
New Revision: 121880
URL: http://llvm.org/viewvc/llvm-project?rev=121880&view=rev
Log:
Fix typo in r121875.
Modified:
llvm/trunk/lib/MC/MCAssembler.cpp
Modified: llvm/trunk/lib/MC/MCAssembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAssembler.cpp?rev=121880&r1=121879&r2=121880&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAssembler.cpp (original)
+++ llvm/trunk/lib/MC/MCAssembler.cpp Wed Dec 15 13:24:24 2010
@@ -258,7 +258,7 @@
// A number of ARM fixups in Thumb mode require that the effective PC
// address be determined as the 32-bit aligned version of the actual offset.
- if (ShouldAlignPC) Offset &= 0x3;
+ if (ShouldAlignPC) Offset &= ~0x3;
Value -= Layout.getFragmentOffset(DF) + Offset;
}
More information about the llvm-commits
mailing list