summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorAlbert Gutowski <agutowski@google.com>2016-09-13 19:26:42 +0000
committerAlbert Gutowski <agutowski@google.com>2016-09-13 19:26:42 +0000
commitae3fb3113ffc1ccccc95904e25baf11d11d0f14c (patch)
tree027ec2a6070a24282c9b34a151c55f3708713132 /clang/lib/Sema
parentfb621479491f353562ec745a3daa402123110615 (diff)
downloadbcm5719-llvm-ae3fb3113ffc1ccccc95904e25baf11d11d0f14c.tar.gz
bcm5719-llvm-ae3fb3113ffc1ccccc95904e25baf11d11d0f14c.zip
Add some MS aliases for existing intrinsics
Reviewers: thakis, compnerd, majnemer, rsmith, rnk Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24330 llvm-svn: 281375
Diffstat (limited to 'clang/lib/Sema')
-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 3014369c887..c28ef2cae40 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