[lto] remove unnecessary assignment
Nathan Sidwell
nathan@acm.org
Fri Aug 26 13:00:00 GMT 2016
In chasing down an LTO read/write bug I came across some 'interesting' code in
inline_write_summaries:
if (cnode && (node = cnode)->definition && !node->alias)
that in-test assignment isn't needed -- cnode is not modified until the next
loop iteration.
Fixed as obvious by removing the 'node' variable.
nathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipa.patch
Type: text/x-patch
Size: 2084 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160826/d53abd7a/attachment.bin>
More information about the Gcc-patches
mailing list