aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/PreprocessorLexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-22 02:02:22 +0000
committerChris Lattner <sabre@nondot.org>2008-11-22 02:02:22 +0000
commit74d15dfd183b2082e8a5d4dfbf66bd861b220901 (patch)
tree7f763bac3fc14211443f61a56cca19c3017638bf /lib/Lex/PreprocessorLexer.cpp
parenta4f34eaab2c8b32582af339279d5dc9ba648174c (diff)
Change the Lexer::Diag method to not magically silence warnings,
force the caller to check instead. This eliminates the need (and the risk!) of weird null DiagnosticBuilder's floating around. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PreprocessorLexer.cpp')
-rw-r--r--lib/Lex/PreprocessorLexer.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Lex/PreprocessorLexer.cpp b/lib/Lex/PreprocessorLexer.cpp
index 1916f298db..6e479625e0 100644
--- a/lib/Lex/PreprocessorLexer.cpp
+++ b/lib/Lex/PreprocessorLexer.cpp
@@ -28,8 +28,6 @@ PreprocessorLexer::~PreprocessorLexer() {}
void PreprocessorLexer::Diag(SourceLocation Loc, unsigned DiagID,
const std::string &Msg) const {
- if (LexingRawMode && Diagnostic::isBuiltinNoteWarningOrExtension(DiagID))
- return;
PP->Diag(Loc, DiagID) << Msg;
}