diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-11-06 01:47:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-05 09:47:26 -0800 |
| commit | b118451e301d734e3e783b3acdf871f3f6ea851c (patch) | |
| tree | 277f160d31e2c442f724bc6a2d3c09fabff403ca /source/slang/slang-ir-variable-scope-correction.cpp | |
| parent | 53dd5928c35d5a5cb1f7d2a563348fd1fa87d672 (diff) | |
Move switch statement bodies to their own lines (#5493)
* Move switch statement bodies to their own lines
* format
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-ir-variable-scope-correction.cpp')
| -rw-r--r-- | source/slang/slang-ir-variable-scope-correction.cpp | 9 |
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; } } |
