From 0640a10ab85f8be3c3c925cb70711560265e6548 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 14 Aug 2020 12:56:43 -0700 Subject: Fix tuple type lowering (#1499) Co-authored-by: Tim Foley --- source/slang/slang-ir-deduplicate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-ir-deduplicate.cpp') diff --git a/source/slang/slang-ir-deduplicate.cpp b/source/slang/slang-ir-deduplicate.cpp index 81bb2371e..83090e5ff 100644 --- a/source/slang/slang-ir-deduplicate.cpp +++ b/source/slang/slang-ir-deduplicate.cpp @@ -24,10 +24,11 @@ namespace Slang } IRInst* addTypeValue(IRInst* value) { - // Do not deduplicate struct types. + // Do not deduplicate struct or interface types. switch (value->op) { case kIROp_StructType: + case kIROp_InterfaceType: return value; default: break; -- cgit v1.2.3