[llvm-commits] [llvm] r59170 - /llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp

Evan Cheng evan.cheng at apple.com
Wed Nov 12 13:38:01 PST 2008


Author: evancheng
Date: Wed Nov 12 15:37:59 2008
New Revision: 59170

URL: http://llvm.org/viewvc/llvm-project?rev=59170&view=rev
Log:
Remove the incorrect assertion. We don't have enough information before relocation to set U bit.

Modified:
    llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp?rev=59170&r1=59169&r2=59170&view=diff

==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp Wed Nov 12 15:37:59 2008
@@ -246,8 +246,7 @@
         *((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.





More information about the llvm-commits mailing list