aboutsummaryrefslogtreecommitdiff
path: root/clang/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
commitabdd6fc48dba82ea7b9ef1deb7f467c2ef11a042 (patch)
tree8d3e61a8eeb9f7cbf90f2863593cbc78b9549c1f /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent9b96ae80d497626d0f42cd07333557331f98adef (diff)
downloadllvm-abdd6fc48dba82ea7b9ef1deb7f467c2ef11a042.zip
llvm-abdd6fc48dba82ea7b9ef1deb7f467c2ef11a042.tar.gz
llvm-abdd6fc48dba82ea7b9ef1deb7f467c2ef11a042.tar.bz2
Remove a redundant check. NFC
llvm-svn: 251116
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.