summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Laurie <benl@google.com>2009-02-17 17:32:22 +0000
committerBen Laurie <benl@google.com>2009-02-17 17:32:22 +0000
commit54a06ce43732cf8795bfd272b39e276e997c1b2a (patch)
treebfd0433cb0b94ed130e886e75d8cea3d6cfc723d
parent03868f4ea0d8f04bd92b9d8d8b00c359409ef14d (diff)
downloadbcm5719-llvm-54a06ce43732cf8795bfd272b39e276e997c1b2a.tar.gz
bcm5719-llvm-54a06ce43732cf8795bfd272b39e276e997c1b2a.zip
Handle fatal errors.
llvm-svn: 64770
-rw-r--r--clang/lib/Driver/TextDiagnosticBuffer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/TextDiagnosticBuffer.cpp b/clang/lib/Driver/TextDiagnosticBuffer.cpp
index 279a6b9a389..81cd4ec3a74 100644
--- a/clang/lib/Driver/TextDiagnosticBuffer.cpp
+++ b/clang/lib/Driver/TextDiagnosticBuffer.cpp
@@ -32,6 +32,7 @@ void TextDiagnosticBuffer::HandleDiagnostic(Diagnostic::Level Level,
Warnings.push_back(std::make_pair(Info.getLocation(), Str));
break;
case Diagnostic::Error:
+ case Diagnostic::Fatal:
Errors.push_back(std::make_pair(Info.getLocation(), Str));
break;
}
OpenPOWER on IntegriCloud