summaryrefslogtreecommitdiffstats
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/emit.cpp')
-rw-r--r--source/slang/emit.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index 332125fc6..2b7030897 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -5296,6 +5296,10 @@ emitDeclImpl(decl, nullptr);
emit(";\n");
break;
+ case kIROp_discard:
+ emit("discard;\n");
+ break;
+
case kIROp_swizzleSet:
{
auto ii = (IRSwizzleSet*)inst;
@@ -5425,6 +5429,7 @@ emitDeclImpl(decl, nullptr);
case kIROp_ReturnVal:
case kIROp_ReturnVoid:
+ case kIROp_discard:
emitIRInst(ctx, terminator);
return;