From b118451e301d734e3e783b3acdf871f3f6ea851c Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 6 Nov 2024 01:47:26 +0800 Subject: Move switch statement bodies to their own lines (#5493) * Move switch statement bodies to their own lines * format --------- Co-authored-by: Yong He --- source/slang/slang-ir-variable-scope-correction.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source/slang/slang-ir-variable-scope-correction.cpp') 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(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; } } -- cgit v1.2.3