summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-defer-buffer-load.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-defer-buffer-load.cpp')
-rw-r--r--source/slang/slang-ir-defer-buffer-load.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-defer-buffer-load.cpp b/source/slang/slang-ir-defer-buffer-load.cpp
index ccdfe4538..4736b4e65 100644
--- a/source/slang/slang-ir-defer-buffer-load.cpp
+++ b/source/slang/slang-ir-defer-buffer-load.cpp
@@ -59,7 +59,7 @@ static bool isCompositeTypeContainingArrays(IRType* type)
bool isTypePreferrableToDeferLoad(CodeGenContext* codeGenContext, IRType* type)
{
// If parameter is a pointer/reference, we should consider specialize it.
- if (as<IROutTypeBase>(type) || as<IRRefType>(type) || as<IRConstRefType>(type))
+ if (as<IROutParamTypeBase>(type) || as<IRRefParamType>(type) || as<IRBorrowInParamType>(type))
return true;
// We only want to defer loading values that are "large enough" that