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/AST/LambdaMangleContext.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/AST/LambdaMangleContext.cpp')
| -rw-r--r-- | clang/lib/AST/LambdaMangleContext.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/lib/AST/LambdaMangleContext.cpp b/clang/lib/AST/LambdaMangleContext.cpp index 54f445df4b6..10b01a6999b 100644 --- a/clang/lib/AST/LambdaMangleContext.cpp +++ b/clang/lib/AST/LambdaMangleContext.cpp @@ -22,12 +22,9 @@ unsigned LambdaMangleContext::getManglingNumber(CXXMethodDecl *CallOperator) { const FunctionProtoType *Proto = CallOperator->getType()->getAs<FunctionProtoType>(); ASTContext &Context = CallOperator->getASTContext(); - - QualType Key = - Context.getFunctionType(Context.VoidTy, - ArrayRef<QualType>(Proto->arg_type_begin(), - Proto->getNumArgs()), - FunctionProtoType::ExtProtoInfo()); + + QualType Key = Context.getFunctionType(Context.VoidTy, Proto->getArgTypes(), + FunctionProtoType::ExtProtoInfo()); Key = Context.getCanonicalType(Key); return ++ManglingNumbers[Key->castAs<FunctionProtoType>()]; } |

