aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/FrontendAction.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-11-18 21:47:07 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-11-18 21:47:07 +0000
commitbe3aab6abe5e66bb86596da806acc49614eacb69 (patch)
tree63f323d25a34670b3eab48602c96a4bd1e54f511 /lib/Frontend/FrontendAction.cpp
parent026f6911bb985c800a54446de9f6da8745ae025a (diff)
Use hasErrorOccurred() instead of getNumErrors() where it makes sense.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/FrontendAction.cpp')
-rw-r--r--lib/Frontend/FrontendAction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/FrontendAction.cpp b/lib/Frontend/FrontendAction.cpp
index cfa0b6dbd3..2e9d05f3cf 100644
--- a/lib/Frontend/FrontendAction.cpp
+++ b/lib/Frontend/FrontendAction.cpp
@@ -288,7 +288,7 @@ void FrontendAction::EndSourceFile() {
// Cleanup the output streams, and erase the output files if we encountered
// an error.
- CI.clearOutputFiles(/*EraseFiles=*/CI.getDiagnostics().getNumErrors());
+ CI.clearOutputFiles(/*EraseFiles=*/CI.getDiagnostics().hasErrorOccurred());
// Inform the diagnostic client we are done with this source file.
CI.getDiagnosticClient().EndSourceFile();