[cfe-commits] r64306 - /cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Douglas Gregor
dgregor at apple.com
Wed Feb 11 08:17:49 PST 2009
Author: dgregor
Date: Wed Feb 11 10:17:49 2009
New Revision: 64306
URL: http://llvm.org/viewvc/llvm-project?rev=64306&view=rev
Log:
Silence a warning about an unused variable in -Asserts builds
Modified:
cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp?rev=64306&r1=64305&r2=64306&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprConstant.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprConstant.cpp Wed Feb 11 10:17:49 2009
@@ -238,7 +238,6 @@
}
llvm::Constant *EmitUnionInitialization(InitListExpr *ILE) {
- RecordDecl *RD = ILE->getType()->getAsRecordType()->getDecl();
const llvm::Type *Ty = ConvertType(ILE->getType());
// If this is an empty initializer list, we value-initialize the
@@ -252,6 +251,7 @@
#ifndef NDEBUG
// Make sure that it's really an empty and not a failure of
// semantic analysis.
+ RecordDecl *RD = ILE->getType()->getAsRecordType()->getDecl();
for (RecordDecl::field_iterator Field = RD->field_begin(),
FieldEnd = RD->field_end();
Field != FieldEnd; ++Field)
More information about the cfe-commits
mailing list