diff options
| author | Tim Foley <tfoley@nvidia.com> | 2018-03-12 10:26:17 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2018-03-12 10:30:33 -0700 |
| commit | e8f44d426c0871069eeafa35bedde64498c4d825 (patch) | |
| tree | de1561f30ab3f24e5d1e5341e85efc16cd46e809 /source/slang/emit.cpp | |
| parent | 51bc468959b5ab8103c196adaabcafdb5d0b3feb (diff) | |
Don't use specialized field names when legalizing types
The type legalization logic currently looks up layout information for the fields of an aggregate type using the mangled name of the field (since this should be consistent even when legalization changes the number of fields). The problem at present is that type layouts for specialized generic types were storing the mangled names of *specialized* field decl-refs, while the lookup was using the mangled names of the unspecialized declarations. The latter (unspecialized names) is what we want for simplicity, so this change fixes the comparison.
Diffstat (limited to 'source/slang/emit.cpp')
0 files changed, 0 insertions, 0 deletions
