From db96ae9607ddca2e0627c8b87a160d61689663ca Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 9 Mar 2008 07:36:38 +0000 Subject: A BB that unwind_to an "unwind" inst is that same as one that doesn't unwind_to at all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48096 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/SimplifyCFG/unwindto.ll | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/Transforms') diff --git a/test/Transforms/SimplifyCFG/unwindto.ll b/test/Transforms/SimplifyCFG/unwindto.ll index e42a831766..28d9d1e6e3 100644 --- a/test/Transforms/SimplifyCFG/unwindto.ll +++ b/test/Transforms/SimplifyCFG/unwindto.ll @@ -33,3 +33,11 @@ bb4: unwind_to %cleanup cleanup: ret i32 1 } + +define i32 @f3() { +entry: unwind_to %cleanup + call void @g(i32 0) + ret i32 0 +cleanup: + unwind +} -- cgit v1.2.3-70-g09d2