PR4317: Handle splits where the new block is unreachable correctly in 
DominatorTreeBase::Split.

llvm-svn: 72810
diff --git a/llvm/test/CodeGen/Generic/2009-06-03-UnreachableSplitPad.ll b/llvm/test/CodeGen/Generic/2009-06-03-UnreachableSplitPad.ll
new file mode 100644
index 0000000..59e7d0c
--- /dev/null
+++ b/llvm/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
+}