Set Diag.ErrorOccurred even if a DiagnosticConsumer does not want it in
authorDaniel Jasper <djasper@google.com>
Fri, 28 Sep 2012 15:45:07 +0000 (15:45 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 28 Sep 2012 15:45:07 +0000 (15:45 +0000)
commitd2e6f65b1b068408d0be6740c161dec2f27f8084
treedbfa05d1a43e80473c6c702355b9aa43a33b934d
parentc7d6a2df389d4850d59d9c62ec058caee5b09727
Set Diag.ErrorOccurred even if a DiagnosticConsumer does not want it in
diagnostic count.

If a DiagnosticConsumer sub-class overwrites IncludeInDiagnosticCounts,
this should change diagnostic counts. However, it currently also
influences Diag.ErrorOccurred, which in turn influences the behavior of
parsing and semantic analysis (in a way that can make it crash).

llvm-svn: 164824
clang/lib/Basic/DiagnosticIDs.cpp