mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Firstly, having a BranchInst isn't exclusive with having an unwind_to.
Secondly, we have to check whether the branch is actually pointing to the block with the unwind in it. We could have gotten here because of the unwind_to alone. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48099 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -41,3 +41,21 @@ entry: unwind_to %cleanup
|
||||
cleanup:
|
||||
unwind
|
||||
}
|
||||
|
||||
define i32 @f4() {
|
||||
entry: unwind_to %cleanup
|
||||
call void @g(i32 0)
|
||||
br label %cleanup
|
||||
cleanup:
|
||||
unwind
|
||||
}
|
||||
|
||||
define i32 @f5() {
|
||||
entry: unwind_to %cleanup
|
||||
call void @g(i32 0)
|
||||
br label %other
|
||||
other:
|
||||
ret i32 0
|
||||
cleanup:
|
||||
unwind
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user