diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-02-11 16:17:49 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-02-11 16:17:49 +0000 |
commit | 6ec47f0d596bd9bbe793a1535ba0912bbd8c574f (patch) | |
tree | 962d4d22f19f8a36dd199424da9c2a369f9e372e /clang/lib/CodeGen/CGExprConstant.cpp | |
parent | 0e558536391e208ba9b955888c0ac7d9baae7d20 (diff) | |
download | bcm5719-llvm-6ec47f0d596bd9bbe793a1535ba0912bbd8c574f.tar.gz bcm5719-llvm-6ec47f0d596bd9bbe793a1535ba0912bbd8c574f.zip |
Silence a warning about an unused variable in -Asserts builds
llvm-svn: 64306
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp index 838452d476c..1f6da8a4142 100644 --- a/clang/lib/CodeGen/CGExprConstant.cpp +++ b/clang/lib/CodeGen/CGExprConstant.cpp @@ -238,7 +238,6 @@ public: } 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 @@ public: #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) |