use getDiagnosticLevel instead of getDiagnosticMapping, which

is about to become private.

llvm-svn: 69262
This commit is contained in:
Chris Lattner 2009-04-16 03:59:32 +00:00
parent b4b3709c5b
commit af73cf6363
1 changed files with 2 additions and 2 deletions

View File

@ -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);