summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/LambdaMangleContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/LambdaMangleContext.cpp')
-rw-r--r--clang/lib/AST/LambdaMangleContext.cpp9
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>()];
}
OpenPOWER on IntegriCloud