]> granicus.if.org Git - clang/commitdiff
Handle fatal errors.
authorBen Laurie <benl@google.com>
Tue, 17 Feb 2009 17:32:22 +0000 (17:32 +0000)
committerBen Laurie <benl@google.com>
Tue, 17 Feb 2009 17:32:22 +0000 (17:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64770 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/TextDiagnosticBuffer.cpp

index 279a6b9a389cc23a3e2e0a6444eef2ed958c09d1..81cd4ec3a74277c532ec6bd6874dbefba0338630 100644 (file)
@@ -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;
   }