summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PTHLexer.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-02-19 22:13:40 +0000
committerTed Kremenek <kremenek@apple.com>2009-02-19 22:13:40 +0000
commit36b005db45fd63254b0ad0edcf4160eb23b3e1d5 (patch)
tree64695657418ed8ce7b8698a1fc2655cba2944fe4 /clang/lib/Lex/PTHLexer.cpp
parenta67033294a028a9a33530bb3454758ba33acd842 (diff)
downloadbcm5719-llvm-36b005db45fd63254b0ad0edcf4160eb23b3e1d5.tar.gz
bcm5719-llvm-36b005db45fd63254b0ad0edcf4160eb23b3e1d5.zip
Make PTH warnings actual warnings instead of 'notes'.
llvm-svn: 65071
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r--clang/lib/Lex/PTHLexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp
index ac510af8b94..b0a610d3d3e 100644
--- a/clang/lib/Lex/PTHLexer.cpp
+++ b/clang/lib/Lex/PTHLexer.cpp
@@ -584,7 +584,7 @@ PTHManager::~PTHManager() {
static void InvalidPTH(Diagnostic *Diags, const char* Msg = 0) {
if (!Diags) return;
if (!Msg) Msg = "Invalid or corrupted PTH file";
- unsigned DiagID = Diags->getCustomDiagID(Diagnostic::Note, Msg);
+ unsigned DiagID = Diags->getCustomDiagID(Diagnostic::Warning, Msg);
Diags->Report(FullSourceLoc(), DiagID);
}
OpenPOWER on IntegriCloud