[llvm-commits] llvm-gcc patch for PR954

Chris Lattner clattner at apple.com
Mon Oct 30 22:16:20 PST 2006


I applied this patch.  Testcase here:
Regression/C++Frontend/2006-10-30-ClassBitfield.cpp

-Chris


Index: llvm-convert.cpp
===================================================================
--- llvm-convert.cpp    (revision 119298)
+++ llvm-convert.cpp    (working copy)
@@ -3874,7 +3874,7 @@
          // the size of the field.  To get the pointer close enough,  
add some
          // number of alignment units to the pointer.
          unsigned ByteAlignment = TD.getTypeAlignment(FieldTy);
-        assert(ByteAlignment*8 < LLVMValueBitSize && "Unknown  
overlap case!");
+        assert(ByteAlignment*8 <= LLVMValueBitSize && "Unknown  
overlap case!");
          unsigned NumAlignmentUnits = BitStart/(ByteAlignment*8);
          assert(NumAlignmentUnits && "Not adjusting pointer?");





More information about the llvm-commits mailing list