diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-08-01 18:23:24 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-08-01 18:23:24 +0000 |
commit | 6f8f6008c20a740ea1112d18aeecad865a1880e6 (patch) | |
tree | 631d0cbea9a74c6c78cda91282e180f865365b87 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 0be8f64c44d2fe87fdf8feda175dc39d38a83906 (diff) | |
download | bcm5719-llvm-6f8f6008c20a740ea1112d18aeecad865a1880e6.tar.gz bcm5719-llvm-6f8f6008c20a740ea1112d18aeecad865a1880e6.zip |
Reduce a variable's scope (no functionality change)
llvm-svn: 187594
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 4e77f87cc65..8267d4449a0 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -2207,7 +2207,6 @@ llvm::DIType CGDebugInfo::CreateLimitedType(const RecordType *Ty) { uint64_t Size = CGM.getContext().getTypeSize(Ty); uint64_t Align = CGM.getContext().getTypeAlign(Ty); - const CXXRecordDecl *CXXDecl = dyn_cast<CXXRecordDecl>(RD); llvm::DICompositeType RealDecl; if (RD->isUnion()) @@ -2228,7 +2227,7 @@ llvm::DIType CGDebugInfo::CreateLimitedType(const RecordType *Ty) { RegionMap[Ty->getDecl()] = llvm::WeakVH(RealDecl); TypeCache[QualType(Ty, 0).getAsOpaquePtr()] = RealDecl; - if (CXXDecl) { + if (const CXXRecordDecl *CXXDecl = dyn_cast<CXXRecordDecl>(RD)) { // A class's primary base or the class itself contains the vtable. llvm::DICompositeType ContainingType; const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD); |