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 | 71d817451626fe7ac6b080955ff87624b76bd058 (patch) | |
tree | d5b602384f51b83843488117aad96bf7d53487e3 /lib/CodeGen/CGExprConstant.cpp | |
parent | 658bbb5e8072ccd68b5ddc299d1b868aa047a746 (diff) |
Silence a warning about an unused variable in -Asserts builds
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 838452d476..1f6da8a414 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/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) |