Skip to content

Commit

Permalink
Handle IRGlobalValueRef in C-like emitter
Browse files Browse the repository at this point in the history
  • Loading branch information
aleino-nv committed Dec 11, 2024
1 parent a0366c8 commit 5591ef5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/slang/slang-emit-c-like.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<IRGlobalValueRef>(inst)->getOperand(0), getInfo(EmitOp::General));
break;
}
default:
diagnoseUnhandledInst(inst);
break;
Expand Down

0 comments on commit 5591ef5

Please sign in to comment.