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-restructure-scoping.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source/slang/slang-ir-restructure-scoping.cpp') diff --git a/source/slang/slang-ir-restructure-scoping.cpp b/source/slang/slang-ir-restructure-scoping.cpp index 72c25bcd6..f0266b3fc 100644 --- a/source/slang/slang-ir-restructure-scoping.cpp +++ b/source/slang/slang-ir-restructure-scoping.cpp @@ -142,13 +142,16 @@ IRInst* getDefaultInitVal(IRBuilder* builder, IRType* type) { switch (type->getOp()) { - default: return nullptr; + default: + return nullptr; - case kIROp_BoolType: return builder->getBoolValue(false); + case kIROp_BoolType: + return builder->getBoolValue(false); case kIROp_IntType: case kIROp_UIntType: - case kIROp_UInt64Type: return builder->getIntValue(type, 0); + case kIROp_UInt64Type: + return builder->getIntValue(type, 0); case kIROp_HalfType: case kIROp_FloatType: -- cgit v1.2.3