summaryrefslogtreecommitdiff
path: root/source/slang/slang-mangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-mangle.cpp')
-rw-r--r--source/slang/slang-mangle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-mangle.cpp b/source/slang/slang-mangle.cpp
index 311725e08..d96b5591b 100644
--- a/source/slang/slang-mangle.cpp
+++ b/source/slang/slang-mangle.cpp
@@ -253,7 +253,7 @@ void emitType(ManglingContext* context, Type* type)
auto n = funcType->getParamCount();
emit(context, n);
for (Index i = 0; i < n; ++i)
- emitType(context, funcType->getParamType(i));
+ emitType(context, funcType->getParamTypeWithDirectionWrapper(i));
emitType(context, funcType->getResultType());
emitType(context, funcType->getErrorType());
}