summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-variable-scope-correction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-variable-scope-correction.cpp')
-rw-r--r--source/slang/slang-ir-variable-scope-correction.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/slang/slang-ir-variable-scope-correction.cpp b/source/slang/slang-ir-variable-scope-correction.cpp
index bc425a3ba..2994f4d3d 100644
--- a/source/slang/slang-ir-variable-scope-correction.cpp
+++ b/source/slang/slang-ir-variable-scope-correction.cpp
@@ -254,7 +254,8 @@ bool VariableScopeCorrectionContext::_isStorableType(IRType* type)
{
case kIROp_VectorType:
case kIROp_MatrixType:
- case kIROp_StructType: return true;
+ case kIROp_StructType:
+ return true;
case kIROp_ArrayType:
{
if (auto arrayType = as<IRArrayTypeBase>(type))
@@ -262,8 +263,10 @@ bool VariableScopeCorrectionContext::_isStorableType(IRType* type)
else
return false;
}
- case kIROp_UnsizedArrayType: return false;
- default: return false;
+ case kIROp_UnsizedArrayType:
+ return false;
+ default:
+ return false;
}
}