diff options
author | Alon Zakai <azakai@google.com> | 2020-12-03 13:27:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 13:27:36 -0800 |
commit | 15356635e34ed8981c993d67ed90e83bc7bfa405 (patch) | |
tree | 02b69b8a8430fd8dddba703219168347afceacb3 /src/passes/Print.cpp | |
parent | 00f96c854ed3691b01fa35bba0a1d010d08958bd (diff) | |
download | binaryen-15356635e34ed8981c993d67ed90e83bc7bfa405.tar.gz binaryen-15356635e34ed8981c993d67ed90e83bc7bfa405.tar.bz2 binaryen-15356635e34ed8981c993d67ed90e83bc7bfa405.zip |
[Types] Return const& for HeapTypes and their Structs and Arrays. NFC (#3417)
I am starting to write lines like
curr->value->type.getHeapType().getStruct().fields[curr->index].type
and it scares me to think that there may be copies going on there.
The issue is that Types are interned, but HeapTypes and their components
are not.
Diffstat (limited to 'src/passes/Print.cpp')
0 files changed, 0 insertions, 0 deletions