diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 2987e7c276aa66e9a3490bee88c515577cbac14e..aeffd0a240fdea18796bd4f526ef4179e7309140 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;