diff options
author | Alon Zakai <azakai@google.com> | 2024-10-15 12:26:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-15 12:26:36 -0700 |
commit | 686c76bf8f694505e549c8e402bcfa8a38dc5050 (patch) | |
tree | 5a97a1b30f581253d22ef7e1a64c13ff30a6af2d /src/passes/GlobalRefining.cpp | |
parent | 93883fde36ac158fd415dcd6dbd387dcfd928d3c (diff) | |
download | binaryen-686c76bf8f694505e549c8e402bcfa8a38dc5050.tar.gz binaryen-686c76bf8f694505e549c8e402bcfa8a38dc5050.tar.bz2 binaryen-686c76bf8f694505e549c8e402bcfa8a38dc5050.zip |
[Strings] StringGathering: Handle uses of strings before their definitions (#7008)
When we gather strings, we create new globals for each one, that is then
the canonical defining global for it, which will then be used everywhere
else. We create such a global if we lack one, but if we happen to have such
a global - a global that simply defines a string - then we reuse it. But we
didn't handle the case where there was a use before the definition, and
failed to sort the definition before the use.
Diffstat (limited to 'src/passes/GlobalRefining.cpp')
0 files changed, 0 insertions, 0 deletions