Add comments describing unusual use of Alias
The base::debug::Alias function is normally used to 'fool' the compiler into retaining an otherwise discardable local variable. In this case base::debug::Alias is used in a completely different way which initially seems wrong, but is actually reasonable. A comment will avoid confusion when auditing uses of Alias. The initial discussion of using base::debug::Alias is here: https://codereview.chromium.org/2810833002#msg7 Bug: 756589 Change-Id: Ib00a1444c217680a69178a8bbf6c710179126e86 Reviewed-on: https://chromium-review.googlesource.com/794298Reviewed-by:Brett Wilson <brettw@chromium.org> Commit-Queue: Bruce Dawson <brucedawson@chromium.org> Cr-Commit-Position: refs/heads/master@{#519860}
Showing
Please register or sign in to comment