Reduce a variable's scope (no functionality change)

llvm-svn: 187594
This commit is contained in:
David Blaikie 2013-08-01 18:23:24 +00:00
parent 0be8f64c44
commit 6f8f6008c2
1 changed files with 1 additions and 2 deletions

View File

@ -2207,7 +2207,6 @@ llvm::DIType CGDebugInfo::CreateLimitedType(const RecordType *Ty) {
uint64_t Size = CGM.getContext().getTypeSize(Ty); uint64_t Size = CGM.getContext().getTypeSize(Ty);
uint64_t Align = CGM.getContext().getTypeAlign(Ty); uint64_t Align = CGM.getContext().getTypeAlign(Ty);
const CXXRecordDecl *CXXDecl = dyn_cast<CXXRecordDecl>(RD);
llvm::DICompositeType RealDecl; llvm::DICompositeType RealDecl;
if (RD->isUnion()) if (RD->isUnion())
@ -2228,7 +2227,7 @@ llvm::DIType CGDebugInfo::CreateLimitedType(const RecordType *Ty) {
RegionMap[Ty->getDecl()] = llvm::WeakVH(RealDecl); RegionMap[Ty->getDecl()] = llvm::WeakVH(RealDecl);
TypeCache[QualType(Ty, 0).getAsOpaquePtr()] = 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. // A class's primary base or the class itself contains the vtable.
llvm::DICompositeType ContainingType; llvm::DICompositeType ContainingType;
const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD); const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD);