diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-06-03 21:42:06 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-06-03 21:42:06 +0000 |
commit | a8ba2c25e9ea7b0d213b485debe5d044efde66a4 (patch) | |
tree | d9b1d22cf0d2bf1cae1b79dc87c7273a9daac35f /test | |
parent | 77648cfd7546b47db0dc7d454e127c96ab39941b (diff) | |
download | external_llvm-a8ba2c25e9ea7b0d213b485debe5d044efde66a4.zip external_llvm-a8ba2c25e9ea7b0d213b485debe5d044efde66a4.tar.gz external_llvm-a8ba2c25e9ea7b0d213b485debe5d044efde66a4.tar.bz2 |
PR4317: Handle splits where the new block is unreachable correctly in
DominatorTreeBase::Split.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72810 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Generic/2009-06-03-UnreachableSplitPad.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2009-06-03-UnreachableSplitPad.ll b/test/CodeGen/Generic/2009-06-03-UnreachableSplitPad.ll new file mode 100644 index 0000000..59e7d0c --- /dev/null +++ b/test/CodeGen/Generic/2009-06-03-UnreachableSplitPad.ll @@ -0,0 +1,15 @@ +; RUN: llvm-as < %s | llc +; PR4317 + +declare i32 @b() + +define void @a() { +entry: + ret void + +dummy: + invoke i32 @b() to label %reg unwind label %reg + +reg: + ret void +} |