summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPMacroExpansion.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-22 21:58:33 +0000
committerAlp Toker <alp@nuanti.com>2014-06-22 21:58:33 +0000
commitac4e8e5fcad38e749a1e151b124fd3e71c6747a6 (patch)
tree5f6df8655b15aaafd0649799aa816c0f443ffc52 /clang/lib/Lex/PPMacroExpansion.cpp
parent343cd6f0560bfd0e82b8546e357aa31856e97bc6 (diff)
downloadbcm5719-llvm-ac4e8e5fcad38e749a1e151b124fd3e71c6747a6.tar.gz
bcm5719-llvm-ac4e8e5fcad38e749a1e151b124fd3e71c6747a6.zip
DiagnosticIDs: use diagnostic severities to simplify extension handling
llvm-svn: 211479
Diffstat (limited to 'clang/lib/Lex/PPMacroExpansion.cpp')
-rw-r--r--clang/lib/Lex/PPMacroExpansion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp
index b22d9d45904..26b99fa21fb 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/lib/Lex/PPMacroExpansion.cpp
@@ -1006,8 +1006,8 @@ static bool HasExtension(const Preprocessor &PP, const IdentifierInfo *II) {
// If the use of an extension results in an error diagnostic, extensions are
// effectively unavailable, so just return false here.
- if (PP.getDiagnostics().getExtensionHandlingBehavior() ==
- DiagnosticsEngine::Ext_Error)
+ if (PP.getDiagnostics().getExtensionHandlingBehavior() >=
+ diag::Severity::Error)
return false;
const LangOptions &LangOpts = PP.getLangOpts();
OpenPOWER on IntegriCloud