summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-specialize-function-call.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-specialize-function-call.cpp')
-rw-r--r--source/slang/slang-ir-specialize-function-call.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/slang/slang-ir-specialize-function-call.cpp b/source/slang/slang-ir-specialize-function-call.cpp
index c03e644de..7c82891a6 100644
--- a/source/slang/slang-ir-specialize-function-call.cpp
+++ b/source/slang/slang-ir-specialize-function-call.cpp
@@ -662,12 +662,12 @@ struct FunctionParameterSpecializationContext
case kIROp_OutType:
case kIROp_RefType:
case kIROp_ConstRefType:
- argType = as<IRPtrTypeBase>(argType)->getValueType();
- resultType = getBuilder()->getPtrType(
- paramType->getOp(),
- argType,
- as<IRPtrTypeBase>(paramType)->getAddressSpace());
- break;
+ {
+ auto ptrParamType = as<IRPtrTypeBase>(paramType);
+ argType = as<IRPtrTypeBase>(argType)->getValueType();
+ resultType = getBuilder()->getPtrType(argType, ptrParamType);
+ break;
+ }
}
if (auto rate = paramType->getRate())
{