Fix typo in r121875.
authorOwen Anderson <resistor@mac.com>
Wed, 15 Dec 2010 19:24:24 +0000 (19:24 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 15 Dec 2010 19:24:24 +0000 (19:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121880 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCAssembler.cpp

index 0d114fb73148db8cf890594a4a8536001076b450..3421c1dde8a265ca2888dc63c59f79b3e1b762e3 100644 (file)
@@ -258,7 +258,7 @@ bool MCAssembler::EvaluateFixup(const MCObjectWriter &Writer,
     
     // 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;
   }