[cfe-commits] r43278 - /cfe/trunk/CodeGen/CodeGenTypes.cpp
Hartmut Kaiser
hartmut.kaiser at gmail.com
Tue Oct 23 17:07:36 PDT 2007
Author: hkaiser
Date: Tue Oct 23 19:07:36 2007
New Revision: 43278
URL: http://llvm.org/viewvc/llvm-project?rev=43278&view=rev
Log:
Fixed a strange construct, please review.
Modified:
cfe/trunk/CodeGen/CodeGenTypes.cpp
Modified: cfe/trunk/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CodeGenTypes.cpp?rev=43278&r1=43277&r2=43278&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/CodeGen/CodeGenTypes.cpp Tue Oct 23 19:07:36 2007
@@ -254,7 +254,7 @@
unsigned CodeGenTypes::getLLVMFieldNo(const FieldDecl *FD) {
llvm::DenseMap<const FieldDecl *, unsigned>::iterator
I = FieldInfo.find(FD);
- if (I != FieldInfo.end() && "Unable to find field info");
+ assert (I != FieldInfo.end() && "Unable to find field info");
return I->second;
}
More information about the cfe-commits
mailing list