diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-11-12 21:37:59 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-11-12 21:37:59 +0000 |
commit | 287a25d63626954373a9d8ba47eb2ce4ce28febd (patch) | |
tree | 1096187ed924a5b319ab9611ccf298b461f79493 /llvm/lib/Target/ARM/ARMJITInfo.cpp | |
parent | 7cd62457c4d9c2416ef1993577edaf6e78720a88 (diff) | |
download | bcm5719-llvm-287a25d63626954373a9d8ba47eb2ce4ce28febd.tar.gz bcm5719-llvm-287a25d63626954373a9d8ba47eb2ce4ce28febd.zip |
Remove the incorrect assertion. We don't have enough information before relocation to set U bit.
llvm-svn: 59170
Diffstat (limited to 'llvm/lib/Target/ARM/ARMJITInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMJITInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMJITInfo.cpp b/llvm/lib/Target/ARM/ARMJITInfo.cpp index 2c47f226975..6dfd5fa81d2 100644 --- a/llvm/lib/Target/ARM/ARMJITInfo.cpp +++ b/llvm/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. |