summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-syntax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-syntax.cpp')
-rw-r--r--source/slang/slang-syntax.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp
index b991a0caf..2498c1226 100644
--- a/source/slang/slang-syntax.cpp
+++ b/source/slang/slang-syntax.cpp
@@ -934,7 +934,7 @@ FuncType* getFuncType(ASTBuilder* astBuilder, DeclRef<CallableDecl> const& declR
{
paramType = astBuilder->getRefParamType(paramType);
}
- else if (paramDecl->findModifier<ConstRefModifier>())
+ else if (paramDecl->findModifier<BorrowModifier>())
{
paramType = astBuilder->getConstRefParamType(paramType);
}
@@ -942,11 +942,11 @@ FuncType* getFuncType(ASTBuilder* astBuilder, DeclRef<CallableDecl> const& declR
{
if (paramDecl->findModifier<InOutModifier>() || paramDecl->findModifier<InModifier>())
{
- paramType = astBuilder->getInOutType(paramType);
+ paramType = astBuilder->getBorrowInOutParamType(paramType);
}
else
{
- paramType = astBuilder->getOutType(paramType);
+ paramType = astBuilder->getOutParamType(paramType);
}
}
paramTypes.add(paramType);