diff options
author | Duncan Sands <baldrick@free.fr> | 2007-11-22 22:24:59 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-11-22 22:24:59 +0000 |
commit | 73d4bb6676ab5730f8b3a7c20cf5fb8f856bdabb (patch) | |
tree | 39aef07d8b414a26e587036533f9ef98e6a93c06 /test/Transforms | |
parent | 920653d41e101787cad4b733ae5c3d4241aa0cec (diff) | |
download | external_llvm-73d4bb6676ab5730f8b3a7c20cf5fb8f856bdabb.zip external_llvm-73d4bb6676ab5730f8b3a7c20cf5fb8f856bdabb.tar.gz external_llvm-73d4bb6676ab5730f8b3a7c20cf5fb8f856bdabb.tar.bz2 |
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
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll | 14 |
1 files changed, 14 insertions, 0 deletions
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 ; <i32>:1 [#uses=0] + +Cont: ; preds = %0 + ret i32 0 + +Other: ; preds = %0 + ret i32 1 +} |