mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 21:29:28 +00:00
Also add asserts that the indices are valid in InsertValueInst::init(). ExtractValueInst already asserts when constructed with invalid indices. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120956 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|