mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
f82086baa5
GetBestDestForJumpOnUndef() assumes there is at least 1 successor, which isn't true if the block ends in an indirect branch with no successors. Fix this by bailing out earlier in this case. llvm-svn: 160546
9 lines
151 B
LLVM
9 lines
151 B
LLVM
; RUN: opt < %s -jump-threading
|
|
; PR 13405
|
|
; Just check that it doesn't crash / assert
|
|
|
|
define i32 @f() nounwind {
|
|
entry:
|
|
indirectbr i8* undef, []
|
|
}
|