commit | 02e2cee7dccec72667c84d6a938512c15ea81af7 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Nov 10 22:02:09 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Nov 10 22:02:09 2009 +0000 |
tree | 452bd5a9212aa17233f5714b4f539bacf7239c8d | |
parent | 4453dc976b06fbf1d4b151d9ec92e2fac2748581 [diff] [blame] |
fix a crash in SCCP handling extractvalue of an array, pointed out and tracked down by Stephan Reiter! llvm-svn: 86726
diff --git a/llvm/test/Transforms/SCCP/crash.ll b/llvm/test/Transforms/SCCP/crash.ll index e34eaca..2f6da1d 100644 --- a/llvm/test/Transforms/SCCP/crash.ll +++ b/llvm/test/Transforms/SCCP/crash.ll
@@ -22,3 +22,8 @@ return: ret void } + +define i32 @test2([4 x i32] %A) { + %B = extractvalue [4 x i32] %A, 1 + ret i32 %B +}