Remove a redundant check. NFC

llvm-svn: 251116
This commit is contained in:
Adrian Prantl
2015-10-23 16:51:32 +00:00
parent 9b96ae80d4
commit abdd6fc48d

View 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.