forked from OSchip/llvm-project
use getDiagnosticLevel instead of getDiagnosticMapping, which
is about to become private. llvm-svn: 69262
This commit is contained in:
parent
b4b3709c5b
commit
af73cf6363
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue