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-specialize-dispatch.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'source/slang/slang-ir-specialize-dispatch.cpp') diff --git a/source/slang/slang-ir-specialize-dispatch.cpp b/source/slang/slang-ir-specialize-dispatch.cpp index ae7b2dc67..75e0016d3 100644 --- a/source/slang/slang-ir-specialize-dispatch.cpp +++ b/source/slang/slang-ir-specialize-dispatch.cpp @@ -31,10 +31,17 @@ IRFunc* specializeDispatchFunction( { switch (inst->getOp()) { - case kIROp_Call: callInst = cast(inst); break; - case kIROp_LookupWitness: lookupInst = cast(inst); break; - case kIROp_Return: returnInst = cast(inst); break; - default: break; + case kIROp_Call: + callInst = cast(inst); + break; + case kIROp_LookupWitness: + lookupInst = cast(inst); + break; + case kIROp_Return: + returnInst = cast(inst); + break; + default: + break; } } SLANG_ASSERT(callInst && lookupInst && returnInst); -- cgit v1.2.3