]> granicus.if.org Git - clang/commitdiff
Remove a redundant check. NFC
authorAdrian Prantl <aprantl@apple.com>
Fri, 23 Oct 2015 16:51:32 +0000 (16:51 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 23 Oct 2015 16:51:32 +0000 (16:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251116 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/ObjectFilePCHContainerOperations.cpp

index 8ceaf7cb3a070224616157a17ee6ab9efdde3a2a..7989b95a568ecbadaafac8d55d542eb7a385cb03 100644 (file)
@@ -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.