From: Rafael Espindola Date: Sat, 12 Jan 2013 15:27:44 +0000 (+0000) Subject: comment X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6dcea67483a72e47db0a382e8d073340927ac27f;p=clang comment git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172317 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 2987e7c276..aeffd0a240 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -1761,6 +1761,9 @@ bool FunctionDecl::isReservedGlobalPlacementOperator() const { } bool FunctionDecl::hasCLanguageLinkage() const { + // Users expect to be able to write + // extern "C" void *__builtin_alloca (size_t); + // so consider builtins as having C language linkage. if (getBuiltinID()) return true;