diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-02-21 22:15:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-02-21 22:15:06 +0000 |
commit | ce056bcaa1c97b89a4b2de2112c62d060863be2b (patch) | |
tree | d8d55d3fbf3e479352b26419c94ef61aa65c84b4 /lib/Sema/SemaType.cpp | |
parent | f7bb329deb2f8ce9ae7f187d6fbe0f98deaeed0d (diff) |
Eliminate the default arguments to ASTContext::getFunctionType(),
fixing up a few callers that thought they were propagating NoReturn
information but were in fact saying something about exception
specifications.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 7911e76d44..adfe6cd7d9 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -797,7 +797,7 @@ QualType Sema::BuildFunctionType(QualType T, return QualType(); return Context.getFunctionType(T, ParamTypes, NumParamTypes, Variadic, - Quals); + Quals, false, false, 0, 0, false, CC_Default); } /// \brief Build a member pointer type \c T Class::*. @@ -1132,7 +1132,8 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S, T = Context.getFunctionType(T, NULL, 0, FTI.isVariadic, FTI.TypeQuals, FTI.hasExceptionSpec, FTI.hasAnyExceptionSpec, - Exceptions.size(), Exceptions.data()); + Exceptions.size(), Exceptions.data(), + false, CC_Default); } else if (FTI.isVariadic) { // We allow a zero-parameter variadic function in C if the // function is marked with the "overloadable" @@ -1148,7 +1149,8 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S, if (!Overloadable) Diag(FTI.getEllipsisLoc(), diag::err_ellipsis_first_arg); - T = Context.getFunctionType(T, NULL, 0, FTI.isVariadic, 0); + T = Context.getFunctionType(T, NULL, 0, FTI.isVariadic, 0, + false, false, 0, 0, false, CC_Default); } else { // Simple void foo(), where the incoming T is the result type. T = Context.getFunctionNoProtoType(T); @@ -1223,7 +1225,8 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S, FTI.isVariadic, FTI.TypeQuals, FTI.hasExceptionSpec, FTI.hasAnyExceptionSpec, - Exceptions.size(), Exceptions.data()); + Exceptions.size(), Exceptions.data(), + false, CC_Default); } // For GCC compatibility, we allow attributes that apply only to @@ -1320,7 +1323,8 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S, // Strip the cv-quals from the type. T = Context.getFunctionType(FnTy->getResultType(), FnTy->arg_type_begin(), - FnTy->getNumArgs(), FnTy->isVariadic(), 0); + FnTy->getNumArgs(), FnTy->isVariadic(), 0, + false, false, 0, 0, false, CC_Default); } } |