diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-14 19:18:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-14 19:18:13 +0000 |
commit | 3ff699e93c8ae7b636ddb4493a88206a72371506 (patch) | |
tree | ba5107e2c2686f6207dbfa42ec3faa375a74571d /test/Transforms/LowerInvoke/2008-02-14-CritEdgePhiCrash.ll | |
parent | 69946fdd7428f0a1ccc7defc7c06533817bbf80e (diff) | |
download | external_llvm-3ff699e93c8ae7b636ddb4493a88206a72371506.zip external_llvm-3ff699e93c8ae7b636ddb4493a88206a72371506.tar.gz external_llvm-3ff699e93c8ae7b636ddb4493a88206a72371506.tar.bz2 |
Fix PR2029
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LowerInvoke/2008-02-14-CritEdgePhiCrash.ll')
-rw-r--r-- | test/Transforms/LowerInvoke/2008-02-14-CritEdgePhiCrash.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/LowerInvoke/2008-02-14-CritEdgePhiCrash.ll b/test/Transforms/LowerInvoke/2008-02-14-CritEdgePhiCrash.ll new file mode 100644 index 0000000..fa82539 --- /dev/null +++ b/test/Transforms/LowerInvoke/2008-02-14-CritEdgePhiCrash.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as < %s | opt -lowerinvoke -enable-correct-eh-support -disable-output +; PR2029 +define i32 @main(i32 %argc, i8** %argv) { +bb470: + invoke i32 @main(i32 0, i8** null) to label %invcont474 unwind label +%lpad902 + +invcont474: ; preds = %bb470 + ret i32 0 + +lpad902: ; preds = %bb470 + %tmp471.lcssa = phi i8* [ null, %bb470 ] ; <i8*> + ret i32 0 +} |