summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir.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.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.cpp')
-rw-r--r--source/slang/slang-ir.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp
index bc7f7970b..28fa70edf 100644
--- a/source/slang/slang-ir.cpp
+++ b/source/slang/slang-ir.cpp
@@ -2979,8 +2979,7 @@ namespace Slang
IRWitnessTable* witnessTable = createInst<IRWitnessTable>(
this,
kIROp_WitnessTable,
- getWitnessTableType(baseType),
- baseType);
+ getWitnessTableType(baseType));
addGlobalValue(this, witnessTable);
return witnessTable;
}