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/CodeGen/Generic | |
| parent | 77648cfd7546b47db0dc7d454e127c96ab39941b (diff) | |
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/CodeGen/Generic')
| -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 0000000000..59e7d0c7a8 --- /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 +} |
