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

Richard Osborne richard at xmos.com
Thu Jul 19 10:30:20 PDT 2012


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: jumpthreading.diff
Type: text/x-patch
Size: 1118 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120719/56c48c61/attachment.bin>


More information about the llvm-commits mailing list