[llvm] r187986 - Use pop_back() instead of pop_back_val() when the returned value is not used.

Chris Lattner clattner at apple.com
Wed Aug 14 16:05:00 PDT 2013


On Aug 8, 2013, at 8:48 AM, Jakub Staszak <kubastaszak at gmail.com> wrote:

> Author: kuba
> Date: Thu Aug  8 10:48:46 2013
> New Revision: 187986
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=187986&view=rev
> Log:
> Use pop_back() instead of pop_back_val() when the returned value is not used.

Would it be overkill to add the "warn_unused_result" attribute on pop_back_val() ?

-Chris




More information about the llvm-commits mailing list