From: Adrian Prantl Date: Sat, 19 Sep 2015 00:10:25 +0000 (+0000) Subject: Eliminate a redundant check. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9083fb296d336494ceed6a1c70146768f7c51d39;p=clang Eliminate a redundant check. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248068 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index b78005ce8f..8b40408f1c 100644 --- a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -172,9 +172,8 @@ public: if (Diags.hasErrorOccurred()) return; - if (CodeGen::CGDebugInfo *DI = Builder->getModuleDebugInfo()) - if (const RecordDecl *RD = dyn_cast(D)) - DI->completeRequiredType(RD); + if (const RecordDecl *RD = dyn_cast(D)) + Builder->getModuleDebugInfo()->completeRequiredType(RD); } /// Emit a container holding the serialized AST.