<div dir="ltr">Ahh ha! I believe that `User::replaceUsesOfWith` modifies the use list, which probably invalidated the use_iterator and caused my code to miss some of the uses. The following works great! (I'll spare you the details about what I am actually trying to do here, unless you really want to know more.)<div>
<br></div><div>Thanks,</div><div>Rob<br><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">===========================</span><br></div><div><div>while(GV->getNumUses() > 0) {</div><div><span style="white-space:pre"> </span>User* u = GV->use_back();</div>
<div> u->replaceUsesOfWith(GV, GEP);</div><div>}</div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px">assert(GV->use_empty());</span></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px">===========================</span></div>
</div></div></div>