summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-c-like.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-c-like.cpp')
-rw-r--r--source/slang/slang-emit-c-like.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp
index 08ba050db..166c131d5 100644
--- a/source/slang/slang-emit-c-like.cpp
+++ b/source/slang/slang-emit-c-like.cpp
@@ -2405,6 +2405,11 @@ void CLikeSourceEmitter::_emitInst(IRInst* inst)
m_writer->emit(";\n");
break;
+ // Insts that needs to be emitted as code blocks.
+ case kIROp_CudaKernelLaunch:
+ emitInstStmtImpl(inst);
+ break;
+
case kIROp_LiveRangeStart:
case kIROp_LiveRangeEnd:
emitLiveness(inst);