diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-02-16 21:58:21 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-02-16 21:58:21 +0000 |
commit | b1152d842c6599e41581302a85a0f53928253add (patch) | |
tree | 914c0ca178ba4ac606b2f787dd2c3ee8b8c76a20 /lib/Sema/SemaDecl.cpp | |
parent | f81895f963f0910c7df422709f7f1668eb9f7c4f (diff) |
Supply the header corresponding to a library builtin as a separate argument to the LIBBUILTIN macro
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index b194c9e2ec..5d02b66f36 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -315,7 +315,7 @@ NamedDecl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned bid, Diag(Loc, diag::ext_implicit_lib_function_decl) << Context.BuiltinInfo.GetName(BID) << R; - if (!Context.BuiltinInfo.getHeaderName(BID).empty() && + if (Context.BuiltinInfo.getHeaderName(BID) && Diags.getDiagnosticMapping(diag::ext_implicit_lib_function_decl) != diag::MAP_IGNORE) Diag(Loc, diag::note_please_include_header) |