1 ; RUN: opt -passes="lint" -S < %s | FileCheck %s
4 ; [NFC][RemoveDIs] Insert instruction using iterators in Transforms/
5 ; this crashed in FindInsertedValue when dereferencing an empty
7 ; Just see that it doesn't crash anymore.
11 %struct = type { i32, i32 }
13 define void @test1() {
15 %.fca.1.insert = insertvalue %struct zeroinitializer, i32 0, 1
16 %0 = extractvalue %struct %.fca.1.insert, 0
17 %1 = tail call %struct @foo(i32 %0)
21 declare %struct @foo(i32)