[cfe-commits] r44800 - /cfe/trunk/CodeGen/CGExpr.cpp
Devang Patel
dpatel at apple.com
Mon Dec 10 10:52:06 PST 2007
Author: dpatel
Date: Mon Dec 10 12:52:06 2007
New Revision: 44800
URL: http://llvm.org/viewvc/llvm-project?rev=44800&view=rev
Log:
Add assert to flag incomplete bit-field support.
Modified:
cfe/trunk/CodeGen/CGExpr.cpp
Modified: cfe/trunk/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExpr.cpp?rev=44800&r1=44799&r2=44800&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/CodeGen/CGExpr.cpp Mon Dec 10 12:52:06 2007
@@ -400,6 +400,9 @@
}
FieldDecl *Field = E->getMemberDecl();
+
+ assert (!Field->isBitField() && "Bit-field access is not yet implmented");
+
unsigned idx = CGM.getTypes().getLLVMFieldNo(Field);
llvm::Value *Idxs[2] = { llvm::Constant::getNullValue(llvm::Type::Int32Ty),
llvm::ConstantInt::get(llvm::Type::Int32Ty, idx) };
More information about the cfe-commits
mailing list