aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-16 03:59:32 +0000
committerChris Lattner <sabre@nondot.org>2009-04-16 03:59:32 +0000
commit6a7334d8101f323acec7d34ed083553c206a902f (patch)
tree35a189216c6753da236e5183742285acf7b6be45 /lib/Sema/SemaDecl.cpp
parent06ef3c3e9be4923b8e29c8e267b0c56afaa14ff3 (diff)
use getDiagnosticLevel instead of getDiagnosticMapping, which
is about to become private. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 6c4580df28..94b3b76a3b 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -407,8 +407,8 @@ NamedDecl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned bid,
<< Context.BuiltinInfo.GetName(BID)
<< R;
if (Context.BuiltinInfo.getHeaderName(BID) &&
- Diags.getDiagnosticMapping(diag::ext_implicit_lib_function_decl)
- != diag::MAP_IGNORE)
+ Diags.getDiagnosticLevel(diag::ext_implicit_lib_function_decl)
+ != Diagnostic::Ignored)
Diag(Loc, diag::note_please_include_header)
<< Context.BuiltinInfo.getHeaderName(BID)
<< Context.BuiltinInfo.GetName(BID);