From bf92b6c33ba9a797ba56a5abd73a850390a16473 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Tue, 12 Mar 2019 15:43:11 -0700 Subject: Fixup for missing code in #896 (#900) The `tuple` case in `getPointedToType` was failing to add the elements it computed to the output tuple type. This isn't triggered in any of our test cases, but was caught by some work I was doing in another branch. --- source/slang/ir-legalize-types.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source') diff --git a/source/slang/ir-legalize-types.cpp b/source/slang/ir-legalize-types.cpp index 00b8109ee..bc26f9afc 100644 --- a/source/slang/ir-legalize-types.cpp +++ b/source/slang/ir-legalize-types.cpp @@ -604,6 +604,7 @@ static LegalType getPointedToType( TuplePseudoType::Element resultElement; resultElement.key = ee.key; resultElement.type = getPointedToType(context, ee.type); + resultTuple->elements.Add(resultElement); } return LegalType::tuple(resultTuple); } -- cgit v1.2.3