llvm-svn: 172316
This commit is contained in:
Rafael Espindola 2013-01-12 15:27:43 +00:00
parent 956c123ab6
commit c48f7341cc
2 changed files with 7 additions and 0 deletions

View File

@ -1761,6 +1761,9 @@ bool FunctionDecl::isReservedGlobalPlacementOperator() const {
}
bool FunctionDecl::hasCLanguageLinkage() const {
if (getBuiltinID())
return true;
return hasCLanguageLinkageTemplate(*this);
}

View File

@ -20,3 +20,7 @@ template int equal<&__builtin_strcmp>(const char*, const char*); // expected-err
void f2() {
__builtin_isnan; // expected-error {{builtin functions must be directly called}}
}
// pr14895
typedef __typeof(sizeof(int)) size_t;
extern "C" void *__builtin_alloca (size_t);