Eliminate a redundant check.

llvm-svn: 248068
This commit is contained in:
Adrian Prantl
2015-09-19 00:10:25 +00:00
parent cc5d106263
commit 8bd4c13f67

View File

@@ -172,9 +172,8 @@ public:
if (Diags.hasErrorOccurred())
return;
if (CodeGen::CGDebugInfo *DI = Builder->getModuleDebugInfo())
if (const RecordDecl *RD = dyn_cast<RecordDecl>(D))
DI->completeRequiredType(RD);
if (const RecordDecl *RD = dyn_cast<RecordDecl>(D))
Builder->getModuleDebugInfo()->completeRequiredType(RD);
}
/// Emit a container holding the serialized AST.