summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-03-08 21:51:21 +0000
committerJordan Rose <jordan_rose@apple.com>2013-03-08 21:51:21 +0000
commit5c38272c1a0b70faa70931517d6c620bbd3342e2 (patch)
treeace4b7958bf7cc37ed8d0d77c73fe85b4e71ce83 /clang/lib/Sema/SemaTemplate.cpp
parent613641d3981753ce47172e63d50906fce4f0611f (diff)
downloadbcm5719-llvm-5c38272c1a0b70faa70931517d6c620bbd3342e2.tar.gz
bcm5719-llvm-5c38272c1a0b70faa70931517d6c620bbd3342e2.zip
ArrayRef-ize ASTContext::getFunctionType and Sema::BuildFunctionType.
No (intended) functionality change. llvm-svn: 176726
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index 4b766a9fdeb..75f255e9454 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -5946,8 +5946,9 @@ Sema::CheckFunctionTemplateSpecialization(FunctionDecl *FD,
FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo();
EPI.TypeQuals |= Qualifiers::Const;
FT = Context.getFunctionType(FPT->getResultType(),
- FPT->arg_type_begin(),
- FPT->getNumArgs(), EPI);
+ ArrayRef<QualType>(FPT->arg_type_begin(),
+ FPT->getNumArgs()),
+ EPI);
}
}
OpenPOWER on IntegriCloud