r248068 - Eliminate a redundant check.

Adrian Prantl via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 17:10:25 PDT 2015


Author: adrian
Date: Fri Sep 18 19:10:25 2015
New Revision: 248068

URL: http://llvm.org/viewvc/llvm-project?rev=248068&view=rev
Log:
Eliminate a redundant check.

Modified:
    cfe/trunk/lib/CodeGen/ObjectFilePCHContainerOperations.cpp

Modified: cfe/trunk/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/ObjectFilePCHContainerOperations.cpp?rev=248068&r1=248067&r2=248068&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/ObjectFilePCHContainerOperations.cpp (original)
+++ cfe/trunk/lib/CodeGen/ObjectFilePCHContainerOperations.cpp Fri Sep 18 19:10:25 2015
@@ -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.




More information about the cfe-commits mailing list