<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 20, 2017 at 1:43 AM, Mikael Holmén <span dir="ltr"><<a href="mailto:mikael.holmen@ericsson.com" target="_blank">mikael.holmen@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I also think it's weird that the replaceDbgDeclareForAlloca/rep<wbr>laceDbgDeclare/FindAllocaDbgDe<wbr>clare methods return as soon as they've handled one found dbg.declare, so if there are several, one is moved next to the alloca, but the other ones are left somewhere. So maybe a fault there too? These methods are used from a bunch of different passes...<br></blockquote><div><br></div><div>I agree, this seems like a bug. I plan to make this return a list in <a href="https://reviews.llvm.org/D37768">https://reviews.llvm.org/D37768</a>.</div></div></div></div>