commit | 22deed092ff53e4e11e09dd9bd24a220a566190f | [log] [tgz] |
---|---|---|
author | Aart Bik <ajcbik@google.com> | Mon Apr 04 14:19:01 2016 -0700 |
committer | Aart Bik <ajcbik@google.com> | Mon Apr 04 14:19:01 2016 -0700 |
tree | 13354a8868ca70c5e12e032c7a0714de76ae6a03 | |
parent | 7d9a5b0fbceef5806f059060d47533b9e699ec28 [diff] |
Move DCHECK into loop. Rationale: Since pointer is non-null on loop entry, moving the check into the while loop (rather than after) gives a more friendly error message in debug mode when something goes wrong. BUG=27825731 BUG=27627004 Change-Id: I2ea67b3ab6c4edc6815fea38a436e5c3c194e540