From 53e891eb28ceac5f956399c65f2ae27d37f3d724 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 7 Dec 2022 13:42:48 -0800 Subject: Rename IR opcodes to unify style. (#2556) Co-authored-by: Yong He --- source/slang/slang-emit-cpp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-emit-cpp.cpp') diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp index f62007bb0..fad0c94f9 100644 --- a/source/slang/slang-emit-cpp.cpp +++ b/source/slang/slang-emit-cpp.cpp @@ -2400,7 +2400,7 @@ bool CPPSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOut // try doing automatically return _tryEmitInstExprAsIntrinsic(inst, inOuterPrec); } - case kIROp_lookup_interface_method: + case kIROp_LookupWitness: { emitInstExpr(inst->getOperand(0), inOuterPrec); m_writer->emit("->"); @@ -2420,7 +2420,7 @@ bool CPPSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOut m_writer->emit(")"); return true; } - case kIROp_getAddr: + case kIROp_GetAddr: { // Once we clean up the pointer emitting logic, we can // just use GetElementAddress instruction in place of -- cgit v1.2.3