mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 16:02:52 +01:00
e390b379ae
Also add asserts that the indices are valid in InsertValueInst::init(). ExtractValueInst already asserts when constructed with invalid indices. llvm-svn: 120956
9 lines
165 B
LLVM
9 lines
165 B
LLVM
; RUN: not llvm-as < %s |& grep {invalid indices for extractvalue}
|
|
; PR4170
|
|
|
|
define void @test() {
|
|
entry:
|
|
extractvalue [0 x i32] undef, 0
|
|
ret void
|
|
}
|