From 9083fb296d336494ceed6a1c70146768f7c51d39 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Sat, 19 Sep 2015 00:10:25 +0000 Subject: [PATCH] Eliminate a redundant check. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248068 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/ObjectFilePCHContainerOperations.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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. -- 2.40.0