From: Adrian Prantl Date: Fri, 23 Oct 2015 16:51:32 +0000 (+0000) Subject: Remove a redundant check. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bb39ed581e4dfdfde8d3e0c5d6cdf2d59d4c56a;p=clang Remove a redundant check. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251116 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index 8ceaf7cb3a..7989b95a56 100644 --- a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/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.