summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-fix-entrypoint-callsite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-fix-entrypoint-callsite.cpp')
-rw-r--r--source/slang/slang-ir-fix-entrypoint-callsite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-fix-entrypoint-callsite.cpp b/source/slang/slang-ir-fix-entrypoint-callsite.cpp
index a0ab07928..c0928a2ff 100644
--- a/source/slang/slang-ir-fix-entrypoint-callsite.cpp
+++ b/source/slang/slang-ir-fix-entrypoint-callsite.cpp
@@ -81,7 +81,7 @@ void fixEntryPointCallsites(IRFunc* entryPoint)
{
auto paramType = params[i]->getDataType();
auto arg = call->getArg(i);
- if (auto refType = as<IRConstRefType>(paramType))
+ if (auto refType = as<IRBorrowInParamType>(paramType))
{
if (!as<IRPtrTypeBase>(arg->getDataType()))
{