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 | 21010b4f37ce6918251866867eea7b6346034fa4 (patch) | |
tree | 39aef07d8b414a26e587036533f9ef98e6a93c06 /test/Transforms | |
parent | 497b40ee2926891aed8068da9a2f5f7f2ea36176 (diff) | |
download | external_llvm-21010b4f37ce6918251866867eea7b6346034fa4.zip external_llvm-21010b4f37ce6918251866867eea7b6346034fa4.tar.gz external_llvm-21010b4f37ce6918251866867eea7b6346034fa4.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 +} |