summaryrefslogtreecommitdiff
path: root/source/slang/ir-restructure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/ir-restructure.cpp')
-rw-r--r--source/slang/ir-restructure.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/slang/ir-restructure.cpp b/source/slang/ir-restructure.cpp
index 98311b11b..dc35a8aee 100644
--- a/source/slang/ir-restructure.cpp
+++ b/source/slang/ir-restructure.cpp
@@ -251,7 +251,8 @@ namespace Slang
//
SLANG_UNEXPECTED("unhandled terminator instruction opcode");
// fall through to:
- case kIROp_unreachable:
+ case kIROp_Unreachable:
+ case kIROp_MissingReturn:
case kIROp_ReturnVal:
case kIROp_ReturnVoid:
case kIROp_discard:
@@ -446,7 +447,7 @@ namespace Slang
}
break;
- case kIROp_switch:
+ case kIROp_Switch:
{
// A `switch` instruction will always translate
// to a `SwitchRegion` and then to a `switch` statement.