[llvm-commits] patch for pr1027
Chris Lattner
clattner at apple.com
Thu Nov 30 22:36:24 PST 2006
Simple patch, GCC's tree IR isn't as consistent as you might think,
particularly the C++ front-end.
-Chris
Index: llvm-convert.cpp
===================================================================
--- llvm-convert.cpp (revision 120751)
+++ llvm-convert.cpp (working copy)
@@ -4911,13 +4911,6 @@
FieldPtr = ConstantExpr::getCast(FieldPtr, PointerType::get
(FieldTy));
}
- // If this is a bitfield reference, return it as such.
- if (DECL_SIZE(FieldDecl) && TREE_CODE(DECL_SIZE(FieldDecl)) ==
INTEGER_CST &&
- TREE_INT_CST_LOW(DECL_SIZE(FieldDecl)) != 8*TD.getTypeSize
(FieldTy)) {
- assert(0 && "Cannot take the address of a bitfield!");
- abort();
- }
-
assert(BitStart == 0 &&
"It's a bitfield reference or we didn't get to the field!");
return FieldPtr;
More information about the llvm-commits
mailing list