From d18e011cbb3df090166d9f49aa51fda077f09fcd Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 15 Dec 2010 19:24:24 +0000 Subject: [PATCH] Fix typo in r121875. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121880 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCAssembler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index 0d114fb7314..3421c1dde8a 100644 --- a/lib/MC/MCAssembler.cpp +++ b/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; } -- 2.34.1