decomp(sd-select): align traversal title declaration lifetime #1066
Reference in New Issue
Block a user
Delete Branch "agent/bittle/channel-title-review"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Small declaration/lifetime gain
Move the existing uninitialized ESTitleId titleId before the outer traversal loop. Every assignment, read and side effect stays in place. ESTitleId is a trivial u64; both loaded/unloaded arms assign it fully before use and its address never escapes. No additional state, initializer or cast.
Independent verification
Base b7a06e9d82e35cda3de92a6135db491000722791; tested tree
4efe030d5a.Partial fuzzy gain using the repository-supported declaration-order workflow, not an exact or linking claim. Details: tools/decomp-assist/sd-channel-title-declaration-20261003.md.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.