diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-06-10 20:51:09 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-06-10 20:51:09 +0000 |
commit | 896b32f9352103f8a4a7ff9acc608b77f6ddb2ba (patch) | |
tree | 363e861c2817697a88835c9b737ba08113c153d8 /clang/lib/Sema/SemaExceptionSpec.cpp | |
parent | 6833e3fd75350c3273f948aced502af567b10213 (diff) | |
download | bcm5719-llvm-896b32f9352103f8a4a7ff9acc608b77f6ddb2ba.tar.gz bcm5719-llvm-896b32f9352103f8a4a7ff9acc608b77f6ddb2ba.zip |
Use FPT::getArgTypes() instead of manually building ArrayRefs
Made significantly easier with git-clang-format.
Differential Revision: http://llvm-reviews.chandlerc.com/D947
llvm-svn: 183694
Diffstat (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExceptionSpec.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp index 1a5f4824d09..a121a75fa48 100644 --- a/clang/lib/Sema/SemaExceptionSpec.cpp +++ b/clang/lib/Sema/SemaExceptionSpec.cpp @@ -203,11 +203,8 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { Old->isExternC()) { FunctionProtoType::ExtProtoInfo EPI = NewProto->getExtProtoInfo(); EPI.ExceptionSpecType = EST_DynamicNone; - QualType NewType = - Context.getFunctionType(NewProto->getResultType(), - ArrayRef<QualType>(NewProto->arg_type_begin(), - NewProto->getNumArgs()), - EPI); + QualType NewType = Context.getFunctionType(NewProto->getResultType(), + NewProto->getArgTypes(), EPI); New->setType(NewType); return false; } @@ -228,11 +225,8 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { // Update the type of the function with the appropriate exception // specification. - QualType NewType = - Context.getFunctionType(NewProto->getResultType(), - ArrayRef<QualType>(NewProto->arg_type_begin(), - NewProto->getNumArgs()), - EPI); + QualType NewType = Context.getFunctionType(NewProto->getResultType(), + NewProto->getArgTypes(), EPI); New->setType(NewType); // If exceptions are disabled, suppress the warning about missing |