diff options
| author | Ben Laurie <benl@google.com> | 2009-02-17 17:32:22 +0000 |
|---|---|---|
| committer | Ben Laurie <benl@google.com> | 2009-02-17 17:32:22 +0000 |
| commit | 54a06ce43732cf8795bfd272b39e276e997c1b2a (patch) | |
| tree | bfd0433cb0b94ed130e886e75d8cea3d6cfc723d | |
| parent | 03868f4ea0d8f04bd92b9d8d8b00c359409ef14d (diff) | |
| download | bcm5719-llvm-54a06ce43732cf8795bfd272b39e276e997c1b2a.tar.gz bcm5719-llvm-54a06ce43732cf8795bfd272b39e276e997c1b2a.zip | |
Handle fatal errors.
llvm-svn: 64770
| -rw-r--r-- | clang/lib/Driver/TextDiagnosticBuffer.cpp | 1 |
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; } |

