diff options
author | Albert Gutowski <agutowski@google.com> | 2016-09-14 21:19:43 +0000 |
---|---|---|
committer | Albert Gutowski <agutowski@google.com> | 2016-09-14 21:19:43 +0000 |
commit | 727ab8a80346eeec39e13293f5dc01cc82bb1d95 (patch) | |
tree | 3a335f82c698d044fa05b5717a739ecaa762dd46 /clang/lib/Sema/SemaDecl.cpp | |
parent | ecdab09bafa497d918878746cbc756dd23e7fdec (diff) | |
download | bcm5719-llvm-727ab8a80346eeec39e13293f5dc01cc82bb1d95.tar.gz bcm5719-llvm-727ab8a80346eeec39e13293f5dc01cc82bb1d95.zip |
Add some MS aliases for existing intrinsics
Reviewers: thakis, compnerd, majnemer, rsmith, rnk
Subscribers: alexshap, cfe-commits
Differential Revision: https://reviews.llvm.org/D24330
llvm-svn: 281540
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 67a3497efb4..f7b67658e60 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -1791,7 +1791,9 @@ NamedDecl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned ID, return nullptr; } - if (!ForRedeclaration && Context.BuiltinInfo.isPredefinedLibFunction(ID)) { + if (!ForRedeclaration && + (Context.BuiltinInfo.isPredefinedLibFunction(ID) || + Context.BuiltinInfo.isHeaderDependentFunction(ID))) { Diag(Loc, diag::ext_implicit_lib_function_decl) << Context.BuiltinInfo.getName(ID) << R; if (Context.BuiltinInfo.getHeaderName(ID) && |