From 73d4bb6676ab5730f8b3a7c20cf5fb8f856bdabb Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Thu, 22 Nov 2007 22:24:59 +0000 Subject: Turn invokes of nounwind functions into ordinary calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44280 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll (limited to 'test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll') diff --git a/test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll b/test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll new file mode 100644 index 0000000..8e8ef43 --- /dev/null +++ b/test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep invoke + +declare i32 @func(i8*) nounwind + +define i32 @test() { + invoke i32 @func( i8* null ) nounwind + to label %Cont unwind label %Other ; :1 [#uses=0] + +Cont: ; preds = %0 + ret i32 0 + +Other: ; preds = %0 + ret i32 1 +} -- cgit v1.1