aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-10 22:02:09 +0000
committerChris Lattner <sabre@nondot.org>2009-11-10 22:02:09 +0000
commit103f2434b8ebb0aec11af141c37bfb02854a5420 (patch)
treee5acd49436dff4fb60b8adaff6bf3cbe7c5b2762 /test
parentf235f13931835b3335f3f2ff2d3060381b93626c (diff)
downloadexternal_llvm-103f2434b8ebb0aec11af141c37bfb02854a5420.zip
external_llvm-103f2434b8ebb0aec11af141c37bfb02854a5420.tar.gz
external_llvm-103f2434b8ebb0aec11af141c37bfb02854a5420.tar.bz2
fix a crash in SCCP handling extractvalue of an array, pointed out and
tracked down by Stephan Reiter! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/SCCP/crash.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/SCCP/crash.ll b/test/Transforms/SCCP/crash.ll
index e34eaca..2f6da1d 100644
--- a/test/Transforms/SCCP/crash.ll
+++ b/test/Transforms/SCCP/crash.ll
@@ -22,3 +22,8 @@ bb34:
return:
ret void
}
+
+define i32 @test2([4 x i32] %A) {
+ %B = extractvalue [4 x i32] %A, 1
+ ret i32 %B
+}