summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-10-23 16:51:32 +0000
committerAdrian Prantl <aprantl@apple.com>2015-10-23 16:51:32 +0000
commit9bb39ed581e4dfdfde8d3e0c5d6cdf2d59d4c56a (patch)
treee6fa3daee93993e6dd47e2047bb8108c8d99dad0 /lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent9761f6f082f04a4f9fe141163745a8bfc9b96031 (diff)
downloadclang-9bb39ed581e4dfdfde8d3e0c5d6cdf2d59d4c56a.tar.gz
Remove a redundant check. NFC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
-rw-r--r--lib/CodeGen/ObjectFilePCHContainerOperations.cpp3
1 files changed, 1 insertions, 2 deletions
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.