It actually looks wrong to me to *not* have the side effect.  If this is due to some warning, then the increment needs to be moved after the assert<br><div class="gmail_quote"><div dir="ltr">On Tue, May 8, 2018 at 7:18 PM George Burgess IV via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">george.burgess.iv added a comment.<br>
<br>
I don't know this code well enough to LGTM this, but can you talk a bit about why, please? This side-effect-inside-an-assert looks sane to me.<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D46620" rel="noreferrer" target="_blank">https://reviews.llvm.org/D46620</a><br>
<br>
<br>
<br>
</blockquote></div>