summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp3
1 files changed, 1 insertions, 2 deletions
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.
OpenPOWER on IntegriCloud