summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-lower-com-methods.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-12-07 13:42:48 -0800
committerGitHub <noreply@github.com>2022-12-07 13:42:48 -0800
commit53e891eb28ceac5f956399c65f2ae27d37f3d724 (patch)
tree4094efab488289f7e5ea7ad4dde9d45525ff03be /source/slang/slang-ir-lower-com-methods.cpp
parent70714705747f3491c55e14b74f87641010351d6c (diff)
Rename IR opcodes to unify style. (#2556)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-lower-com-methods.cpp')
-rw-r--r--source/slang/slang-ir-lower-com-methods.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-ir-lower-com-methods.cpp b/source/slang/slang-ir-lower-com-methods.cpp
index b991dbd03..495e20151 100644
--- a/source/slang/slang-ir-lower-com-methods.cpp
+++ b/source/slang/slang-ir-lower-com-methods.cpp
@@ -31,7 +31,7 @@ struct ComMethodLoweringContext : public InstPassBase
SLANG_ASSERT(callee);
IRLookupWitnessMethod* innerMostCallee = callee;
- while (innerMostCallee->getOperand(0)->getOp() == kIROp_lookup_interface_method)
+ while (innerMostCallee->getOperand(0)->getOp() == kIROp_LookupWitness)
{
innerMostCallee = as<IRLookupWitnessMethod>(innerMostCallee->getOperand(0));
}
@@ -83,7 +83,7 @@ struct ComMethodLoweringContext : public InstPassBase
auto funcValue = inst->getOperand(0);
// Detect if this is a call into a COM interface method.
- if (funcValue->getOp() == kIROp_lookup_interface_method)
+ if (funcValue->getOp() == kIROp_LookupWitness)
{
const auto operand0TypeOp = funcValue->getOperand(0)->getDataType();
if (auto tableType = as<IRWitnessTableTypeBase>(operand0TypeOp))