[llvm-commits] [PATCH] fix assertion in jump-threading (PR13405)

Chad Rosier mcrosier at apple.com
Thu Jul 19 10:45:32 PDT 2012


Seems reasonable to me.

 Chad

On Jul 19, 2012, at 10:30 AM, Richard Osborne wrote:

> This fixes an assertion in jump threading (see PR13405). The assertion happens because GetBestDestForJumpOnUndef() assumes there is at least 1 successor, which isn't the case if the block ends in an indirect branch with no successors. This patch fixes the problem by bailing out in this case.
> 
> OK to commit?
> 
> -- 
> Richard Osborne | XMOS
> http://www.xmos.com
> 
> <jumpthreading.diff>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list