[committed] Fix assert in gimple_phi_arg

Tom de Vries Tom_deVries@mentor.com
Wed Jul 19 15:42:00 GMT 2017


Hi,

this patch makes an assert in gimple_phi_arg more strict.

The current assert allows 'index == phi_stmt->capacity', but 
'phi_stmt->args[phi_stmt->capacity]' is out of bounds.

Bootstrapped and reg-tested on x86_64.

Committed as obvious.

Thanks,
- Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-assert-in-gimple_phi_arg.patch
Type: text/x-patch
Size: 623 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170719/4a0e604c/attachment.bin>


More information about the Gcc-patches mailing list