[PATCH] CodeGenPrep: rewrite a few loops in C++11 style

Sean Silva chisophugis at gmail.com
Wed Jan 7 15:18:30 PST 2015


On Wed, Jan 7, 2015 at 2:41 PM, Ramkumar Ramachandra <artagnon at gmail.com>
wrote:

> It depends on what you want to construct from the iteration.


Why did you choose Function::iterator instead of BasicBlock &?


> You could construct a BasicBlock, like you said; but this is perfectly
> valid too: you can try it out, and see that tests pass.
>
>
> http://reviews.llvm.org/D6868
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150107/6518f5f6/attachment.html>


More information about the llvm-commits mailing list