From 6dcea67483a72e47db0a382e8d073340927ac27f Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 12 Jan 2013 15:27:44 +0000 Subject: [PATCH] comment git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172317 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/Decl.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.40.0