[cfe-commits] TextDiagnosticBuffer doesn't handle fatal errors

Ben Laurie benl at google.com
Tue Feb 17 02:03:10 PST 2009


Proposed patch (doesn't seem worth creating a new holder for fatal
errors to me, but happy to do so if people disagree):

Index: lib/Driver/TextDiagnosticBuffer.cpp
===================================================================
--- lib/Driver/TextDiagnosticBuffer.cpp (revision 64650)
+++ lib/Driver/TextDiagnosticBuffer.cpp (working copy)
@@ -32,6 +32,7 @@
     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;
   }



More information about the cfe-commits mailing list