diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index 0b21c4850f..50fb6655e9 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -2963,6 +2963,11 @@ void CLikeSourceEmitter::defaultEmitInstExpr(IRInst* inst, const EmitOpInfo& inO { break; // should already have been parsed and used. } + case kIROp_GlobalValueRef: + { + emitOperand(as(inst)->getOperand(0), getInfo(EmitOp::General)); + break; + } default: diagnoseUnhandledInst(inst); break;