diff options
Diffstat (limited to 'source/slang/slang-ir-specialize-dispatch.cpp')
| -rw-r--r-- | source/slang/slang-ir-specialize-dispatch.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
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<IRCall>(inst); break; - case kIROp_LookupWitness: lookupInst = cast<IRLookupWitnessMethod>(inst); break; - case kIROp_Return: returnInst = cast<IRReturn>(inst); break; - default: break; + case kIROp_Call: + callInst = cast<IRCall>(inst); + break; + case kIROp_LookupWitness: + lookupInst = cast<IRLookupWitnessMethod>(inst); + break; + case kIROp_Return: + returnInst = cast<IRReturn>(inst); + break; + default: + break; } } SLANG_ASSERT(callInst && lookupInst && returnInst); |
