diff options
Diffstat (limited to 'source/slang/slang-emit-c-like.cpp')
| -rw-r--r-- | source/slang/slang-emit-c-like.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index 090d06f28..8ef18242a 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -222,7 +222,7 @@ void CLikeSourceEmitter::emitSimpleType(IRType* type) List<IRWitnessTableEntry*> CLikeSourceEmitter::getSortedWitnessTableEntries(IRWitnessTable* witnessTable) { List<IRWitnessTableEntry*> sortedWitnessTableEntries; - auto interfaceType = cast<IRInterfaceType>(witnessTable->getOperand(0)); + auto interfaceType = cast<IRInterfaceType>(witnessTable->getConformanceType()); auto witnessTableItems = witnessTable->getChildren(); // Build a dictionary of witness table entries for fast lookup. Dictionary<IRInst*, IRWitnessTableEntry*> witnessTableEntryDictionary; |
