diff options
author | Alon Zakai <azakai@google.com> | 2022-05-05 17:50:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 00:50:17 +0000 |
commit | 0183830cf2976e0930fa45b651be693853f0199a (patch) | |
tree | 2e87c373b7ea44a57aa7ade45a831e20b0272324 /src/support/command-line.h | |
parent | 8554428d4b26865c03bafa3dbe61ee4fb2957fe1 (diff) | |
download | binaryen-0183830cf2976e0930fa45b651be693853f0199a.tar.gz binaryen-0183830cf2976e0930fa45b651be693853f0199a.tar.bz2 binaryen-0183830cf2976e0930fa45b651be693853f0199a.zip |
[NFC] Avoid scanning code in hasBranchTarget if the target is null (#4648)
A null target is not a valid name so nothing can branch to there. This just
saves the wasted work.
No existing code in the codebase benefits from this atm, but a later PR
will. In particular this lets callers call this without checking if the name
is non-null, which is more concise.
Diffstat (limited to 'src/support/command-line.h')
0 files changed, 0 insertions, 0 deletions