summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-builder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ast-builder.cpp')
-rw-r--r--source/slang/slang-ast-builder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-ast-builder.cpp b/source/slang/slang-ast-builder.cpp
index a13e13851..9879a4187 100644
--- a/source/slang/slang-ast-builder.cpp
+++ b/source/slang/slang-ast-builder.cpp
@@ -523,7 +523,7 @@ FuncType* ASTBuilder::getFuncType(ArrayView<Type*> parameters, Type* result, Typ
return getOrCreate<FuncType>(parameters, result, errorType);
}
-TupleType* ASTBuilder::getTupleType(List<Type*>& types)
+TupleType* ASTBuilder::getTupleType(ArrayView<Type*> types)
{
// The canonical form of a tuple type is always a DeclRefType(GenAppDeclRef(TupleDecl, ConcreteTypePack(types...))).
// If `types` is already a single ConcreteTypePack, then we can use that directly.
@@ -536,7 +536,7 @@ TupleType* ASTBuilder::getTupleType(List<Type*>& types)
}
// Otherwise, we need to create a ConcreteTypePack to hold the types.
- auto typePack = getTypePack(types.getArrayView());
+ auto typePack = getTypePack(types);
return as<TupleType>(getSpecializedBuiltinType(typePack, "TupleType"));
}