From abdd6fc48dba82ea7b9ef1deb7f467c2ef11a042 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 23 Oct 2015 16:51:32 +0000 Subject: Remove a redundant check. NFC llvm-svn: 251116 --- clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib') diff --git a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index 8ceaf7cb3a0..7989b95a568 100644 --- a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -159,8 +159,7 @@ public: } bool HandleTopLevelDecl(DeclGroupRef D) override { - if (Diags.hasErrorOccurred() || - (CodeGenOpts.getDebugInfo() == CodeGenOptions::NoDebugInfo)) + if (Diags.hasErrorOccurred()) return true; // Collect debug info for all decls in this group. -- cgit v1.2.3