summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAssembler.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-12-15 19:24:24 +0000
committerOwen Anderson <resistor@mac.com>2010-12-15 19:24:24 +0000
commitc8fa5fcc4265a2e50b6920d73066c2fe5d39ec32 (patch)
treed519505224618c2bee60ebe638ffb713c11f2067 /llvm/lib/MC/MCAssembler.cpp
parent739dee910d9779b7301a4416d31043f20dbd0f3c (diff)
downloadbcm5719-llvm-c8fa5fcc4265a2e50b6920d73066c2fe5d39ec32.tar.gz
bcm5719-llvm-c8fa5fcc4265a2e50b6920d73066c2fe5d39ec32.zip
Fix typo in r121875.
llvm-svn: 121880
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r--llvm/lib/MC/MCAssembler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index 0d114fb7314..3421c1dde8a 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -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;
}
OpenPOWER on IntegriCloud