aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2012-06-24 01:44:08 +0000
committerNick Lewycky <nicholas@mxc.ca>2012-06-24 01:44:08 +0000
commit917f99354fa558e50d17191f593f81155b4ab2c3 (patch)
treefe4b559f299164c6da2d8358b418d934e83c91cf /test
parent6e2db65266c238368f744bbc42b8f4239fd1e76e (diff)
downloadexternal_llvm-917f99354fa558e50d17191f593f81155b4ab2c3.zip
external_llvm-917f99354fa558e50d17191f593f81155b4ab2c3.tar.gz
external_llvm-917f99354fa558e50d17191f593f81155b4ab2c3.tar.bz2
Remove a dangling reference to a deleted instruction. Fixes PR13185!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159096 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/Reassociate/crash.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/Reassociate/crash.ll b/test/Transforms/Reassociate/crash.ll
index bbe4f23..e2ebcdd 100644
--- a/test/Transforms/Reassociate/crash.ll
+++ b/test/Transforms/Reassociate/crash.ll
@@ -108,3 +108,14 @@ unreachable4:
%z4 = add i32 %y4, %y4
ret void
}
+
+; PR13185
+define void @pr13185(i16 %p) {
+entry:
+ br label %for.cond
+
+for.cond: ; preds = %for.cond, %entry
+ %x.0 = phi i32 [ undef, %entry ], [ %conv, %for.cond ]
+ %conv = zext i16 %p to i32
+ br label %for.cond
+}