diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2019-03-12 15:43:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-12 15:43:11 -0700 |
| commit | bf92b6c33ba9a797ba56a5abd73a850390a16473 (patch) | |
| tree | b08c074ce94d9ae02b390c664c6420e051526d52 /source | |
| parent | 2ca792cd01348ad2c849b450d3e397c036578245 (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.cpp | 1 |
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); } |
