aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/TextDiagnosticBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Driver/TextDiagnosticBuffer.cpp')
-rw-r--r--lib/Driver/TextDiagnosticBuffer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Driver/TextDiagnosticBuffer.cpp b/lib/Driver/TextDiagnosticBuffer.cpp
index b3e21e1b15..1df93750f0 100644
--- a/lib/Driver/TextDiagnosticBuffer.cpp
+++ b/lib/Driver/TextDiagnosticBuffer.cpp
@@ -26,6 +26,11 @@ void TextDiagnosticBuffer::HandleDiagnostic(Diagnostic &Diags,
unsigned) {
switch (Level) {
default: assert(0 && "Diagnostic not handled during diagnostic buffering!");
+ case Diagnostic::Note:
+ Notes.push_back(std::make_pair(Pos.getLocation(),
+ FormatDiagnostic(Diags, Level, ID,
+ Strs, NumStrs)));
+ break;
case Diagnostic::Warning:
Warnings.push_back(std::make_pair(Pos.getLocation(),
FormatDiagnostic(Diags, Level, ID,