fix a minor bug with my previous patch

llvm-svn: 64747
This commit is contained in:
Chris Lattner 2009-02-17 06:52:20 +00:00
parent d2a2c13474
commit 9ee10ea535
1 changed files with 3 additions and 1 deletions

View File

@ -355,8 +355,10 @@ void Diagnostic::ProcessDiag() {
if (SuppressSystemWarnings && !ShouldEmitInSystemHeader &&
Info.getLocation().isValid() &&
Info.getLocation().getSpellingLoc().isInSystemHeader() &&
(DiagLevel != Diagnostic::Note || LastDiagLevel == Diagnostic::Ignored))
(DiagLevel != Diagnostic::Note || LastDiagLevel == Diagnostic::Ignored)) {
LastDiagLevel = Diagnostic::Ignored;
return;
}
if (DiagLevel >= Diagnostic::Error) {
ErrorOccurred = true;