summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-link.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2020-09-10 15:10:11 -0700
committerGitHub <noreply@github.com>2020-09-10 15:10:11 -0700
commite5b796db188416dfc414dab27b92c86b0b53de2b (patch)
treeeab72001c550d80927805bd5462fb529c20170ae /source/slang/slang-ir-link.cpp
parentd6a2d2905125715629fe8972a374136189d0c9ef (diff)
Allow existential types in `StructuredBuffer` element type. (#1536)
* Allow existential types in `StructuredBuffer` element type. * Handle StructuredBuffer.Load/.Consume methods * Clean up unnecessary changes * Code cleanup * Update test comment
Diffstat (limited to 'source/slang/slang-ir-link.cpp')
-rw-r--r--source/slang/slang-ir-link.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-link.cpp b/source/slang/slang-ir-link.cpp
index 1008c94a1..cc4c7e68d 100644
--- a/source/slang/slang-ir-link.cpp
+++ b/source/slang/slang-ir-link.cpp
@@ -571,7 +571,7 @@ IRWitnessTable* cloneWitnessTableImpl(
IRWitnessTable* clonedTable = dstTable;
if (!clonedTable)
{
- auto clonedBaseType = cloneType(context, as<IRType>(originalTable->getOperand(0)));
+ auto clonedBaseType = cloneType(context, as<IRType>(originalTable->getConformanceType()));
clonedTable = builder->createWitnessTable(clonedBaseType);
}
cloneSimpleGlobalValueImpl(context, originalTable, originalValues, clonedTable, registerValue);