aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-11-12 21:37:59 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-11-12 21:37:59 +0000
commitcb5798285aa3a3cd93448beda6264152c761e8e3 (patch)
treeac7d8548c44a338cd0f65388e891f9949a07bbc8
parentbc8dda83ef0bbd15c4f4cfb62a0148c53587313f (diff)
Remove the incorrect assertion. We don't have enough information before relocation to set U bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59170 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/ARMJITInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMJITInfo.cpp b/lib/Target/ARM/ARMJITInfo.cpp
index 2c47f22697..6dfd5fa81d 100644
--- a/lib/Target/ARM/ARMJITInfo.cpp
+++ b/lib/Target/ARM/ARMJITInfo.cpp
@@ -246,8 +246,7 @@ void ARMJITInfo::relocate(void *Function, MachineRelocation *MR,
*((intptr_t*)RelocPos) |= 1 << ARMII::U_BitShift;
else {
// Otherwise, obtain the absolute value and set bit U(23) to 0.
- assert((*((intptr_t*)RelocPos) & (1 << ARMII::U_BitShift)) == 0 &&
- "U bit is not zero?");
+ *((intptr_t*)RelocPos) &= ~(1 << ARMII::U_BitShift);
ResultPtr = - ResultPtr;
}
// Set the immed value calculated.