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?");


_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to