summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2019-03-12 15:43:11 -0700
committerGitHub <noreply@github.com>2019-03-12 15:43:11 -0700
commitbf92b6c33ba9a797ba56a5abd73a850390a16473 (patch)
treeb08c074ce94d9ae02b390c664c6420e051526d52 /source
parent2ca792cd01348ad2c849b450d3e397c036578245 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/slang/ir-legalize-types.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}