aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateDeduction.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-06-17 21:51:59 +0000
committerDouglas Gregor <dgregor@apple.com>2009-06-17 21:51:59 +0000
commit9cdda0cf8528e3d595be9bfa002f0450074beb4d (patch)
tree5ffc959c4c5f38e164c9be332cd27388ee0a86b6 /lib/Sema/SemaTemplateDeduction.cpp
parent69e07a75ef2815961929f34675b7c806a9cc37da (diff)
Support dependent extended vector types and template instantiation
thereof. Patch by Anders Johnsen! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73641 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateDeduction.cpp')
-rw-r--r--lib/Sema/SemaTemplateDeduction.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplateDeduction.cpp b/lib/Sema/SemaTemplateDeduction.cpp
index c9b6e13d4a..dd955fe0af 100644
--- a/lib/Sema/SemaTemplateDeduction.cpp
+++ b/lib/Sema/SemaTemplateDeduction.cpp
@@ -802,6 +802,14 @@ MarkDeducedTemplateParameters(Sema &SemaRef, QualType T,
Deduced);
break;
+ case Type::DependentSizedExtVector: {
+ const DependentSizedExtVectorType *VecType
+ = cast<DependentSizedExtVectorType>(T.getTypePtr());
+ MarkDeducedTemplateParameters(SemaRef, VecType->getElementType(), Deduced);
+ MarkDeducedTemplateParameters(VecType->getSizeExpr(), Deduced);
+ break;
+ }
+
case Type::FunctionProto: {
const FunctionProtoType *Proto = cast<FunctionProtoType>(T.getTypePtr());
MarkDeducedTemplateParameters(SemaRef, Proto->getResultType(), Deduced);