summaryrefslogtreecommitdiff
path: root/src/passes/GlobalRefining.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-10-15 12:26:36 -0700
committerGitHub <noreply@github.com>2024-10-15 12:26:36 -0700
commit686c76bf8f694505e549c8e402bcfa8a38dc5050 (patch)
tree5a97a1b30f581253d22ef7e1a64c13ff30a6af2d /src/passes/GlobalRefining.cpp
parent93883fde36ac158fd415dcd6dbd387dcfd928d3c (diff)
downloadbinaryen-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