mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 00:12:50 +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
8 lines
161 B
LLVM
8 lines
161 B
LLVM
; RUN: not llvm-as < %s |& grep {invalid indices for insertvalue}
|
|
|
|
define void @test() {
|
|
entry:
|
|
insertvalue [0 x i32] undef, i32 0, 0
|
|
ret void
|
|
}
|