Revision: 124492 Author: clattner Date: 2007-03-02 18:13:46 -0800 (Fri, 02 Mar 2007)
Log Message: ----------- Add an assert, patch by Duncan Sands. Modified Paths: -------------- apple-local/branches/llvm/gcc/llvm-convert.cpp Modified: apple-local/branches/llvm/gcc/llvm-convert.cpp =================================================================== --- apple-local/branches/llvm/gcc/llvm-convert.cpp 2007-03-03 02:11:25 UTC (rev 124491) +++ apple-local/branches/llvm/gcc/llvm-convert.cpp 2007-03-03 02:13:46 UTC (rev 124492) @@ -5429,6 +5429,7 @@ ProcessBitFieldInitialization(Field, Val, STy, ResultElts); } else { // If not, things are much simpler. + assert(DECL_LLVM_SET_P(Field) && "Struct not laid out for LLVM?"); unsigned FieldNo = cast<ConstantInt>(DECL_LLVM(Field))->getZExtValue(); // If this is an initialization of a global that ends with a variable _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits