summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-29 22:15:51 +0000
committerChris Lattner <sabre@nondot.org>2004-02-29 22:15:51 +0000
commit9c9a4c4abdf180754c1f07395d8e07b8ce617416 (patch)
treeaa3a791531dc6b44efc12410a827f2d24b93bf6a
parent604cc83933b2f0bb011f606c1afc92c19970de7f (diff)
downloadbcm5719-llvm-9c9a4c4abdf180754c1f07395d8e07b8ce617416.tar.gz
bcm5719-llvm-9c9a4c4abdf180754c1f07395d8e07b8ce617416.zip
Testcase for a bug that caused a whole bunch of testcases to die in the nightly
tester last night. llvm-svn: 12011
-rw-r--r--llvm/test/Regression/Transforms/LowerInvoke/2004-02-29-PHICrash.llx16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/LowerInvoke/2004-02-29-PHICrash.llx b/llvm/test/Regression/Transforms/LowerInvoke/2004-02-29-PHICrash.llx
new file mode 100644
index 00000000000..5454eae5f9f
--- /dev/null
+++ b/llvm/test/Regression/Transforms/LowerInvoke/2004-02-29-PHICrash.llx
@@ -0,0 +1,16 @@
+; RUN: llvm-as < %s | opt -lowerinvoke -enable-correct-eh-support -disable-output
+
+void %_ZNKSt11__use_cacheISt16__numpunct_cacheIcEEclERKSt6locale() {
+entry:
+ br bool false, label %then, label %UnifiedReturnBlock
+
+then: ; preds = %entry
+ invoke void %_Znwj( )
+ to label %UnifiedReturnBlock unwind label %UnifiedReturnBlock
+
+UnifiedReturnBlock: ; preds = %entry, %then, %then
+ %UnifiedRetVal = phi int* [ null, %entry ], [ null, %then ], [ null, %then ]
+ ret void
+}
+
+declare void %_Znwj()
OpenPOWER on IntegriCloud