<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 31, 2016 at 8:50 AM, Stephan Bergmann via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">sberg added a comment.<br>
<br>
Dropped the const.  The type of n is int, so taking by value is fine.  (But guess it's better to stick to auto, in case the value type of FuncletMembership should ever change.)<br></blockquote><div><br></div><div>We don't generally use auto for future proofing like this - only if it improves readability. I would argue that since we didn't have type information when it was one line, tehre's not much reason to add type information now that it's two... <br><br>(oh, and of course we can't take it by const ref even if it is expensive - because the whole point is that that ref may be invalidated by the map access... - but I suppose we could add std::move on the RHS of the assignment if we were being generically defensive/matching the possible behavior of the original code, but that'd be weird)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="im HOEnZb"><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D18440" rel="noreferrer" target="_blank">http://reviews.llvm.org/D18440</a><br>
<br>
<br>
<br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div></div>