summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-12-03 13:27:36 -0800
committerGitHub <noreply@github.com>2020-12-03 13:27:36 -0800
commit15356635e34ed8981c993d67ed90e83bc7bfa405 (patch)
tree02b69b8a8430fd8dddba703219168347afceacb3 /src/passes/Print.cpp
parent00f96c854ed3691b01fa35bba0a1d010d08958bd (diff)
downloadbinaryen-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