aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
-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 8ceaf7c..7989b95 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.