On 05/04/2015 12:16 PM, Jakub Jelinek wrote:
Hi!

The code I've added in r217755 was assuming that stmt_could_throw_p
memory read will always end a bb, but that is clearly not the case.
Thus, the following patch uses stmt_ends_bb_p instead.

Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/5?

2015-05-04  Jakub Jelinek  <ja...@redhat.com>

        PR tree-optimization/65984
        * ubsan.c: Include tree-cfg.h.
        (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
        stmt_could_throw_p test, rename can_throw variable to ends_bb.

        * c-c++-common/ubsan/pr65984.c: New test.
OK.
Jeff

Reply via email to