summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-insert-debug-value-store.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-insert-debug-value-store.cpp')
-rw-r--r--source/slang/slang-ir-insert-debug-value-store.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/slang/slang-ir-insert-debug-value-store.cpp b/source/slang/slang-ir-insert-debug-value-store.cpp
index 25b9c03fa..91b7738f1 100644
--- a/source/slang/slang-ir-insert-debug-value-store.cpp
+++ b/source/slang/slang-ir-insert-debug-value-store.cpp
@@ -118,12 +118,12 @@ void DebugValueStoreContext::insertDebugValueStore(IRFunc* func)
builder.setInsertBefore(firstBlock->getFirstOrdinaryInst());
auto paramType = param->getDataType();
bool isRefParam = false;
- if (auto outType = as<IROutTypeBase>(paramType))
+ if (auto outType = as<IROutParamTypeBase>(paramType))
{
isRefParam = true;
paramType = outType->getValueType();
}
- else if (auto ptrType = as<IRConstRefType>(param->getDataType()))
+ else if (auto ptrType = as<IRBorrowInParamType>(param->getDataType()))
{
isRefParam = true;
paramType = ptrType->getValueType();
@@ -146,7 +146,9 @@ void DebugValueStoreContext::insertDebugValueStore(IRFunc* func)
{
paramVal = param;
}
- else if (as<IRInOutType>(param->getDataType()) || as<IRConstRefType>(param->getDataType()))
+ else if (
+ as<IRBorrowInOutParamType>(param->getDataType()) ||
+ as<IRBorrowInParamType>(param->getDataType()))
{
paramVal = builder.emitLoad(param);
}