summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorAlbert Gutowski <agutowski@google.com>2016-09-14 21:19:43 +0000
committerAlbert Gutowski <agutowski@google.com>2016-09-14 21:19:43 +0000
commit727ab8a80346eeec39e13293f5dc01cc82bb1d95 (patch)
tree3a335f82c698d044fa05b5717a739ecaa762dd46 /clang/lib/Sema/SemaDecl.cpp
parentecdab09bafa497d918878746cbc756dd23e7fdec (diff)
downloadbcm5719-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.cpp4
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) &&
OpenPOWER on IntegriCloud