23 lines · plain
1; RUN: opt -passes="lint" -S < %s | FileCheck %s2 3; After 2fe81edef6f0b4; [NFC][RemoveDIs] Insert instruction using iterators in Transforms/5; this crashed in FindInsertedValue when dereferencing an empty6; optional iterator.7; Just see that it doesn't crash anymore.8 9; CHECK-LABEL: @test110 11%struct = type { i32, i32 }12 13define void @test1() {14entry:15 %.fca.1.insert = insertvalue %struct zeroinitializer, i32 0, 116 %0 = extractvalue %struct %.fca.1.insert, 017 %1 = tail call %struct @foo(i32 %0)18 ret void19}20 21declare %struct @foo(i32)22 23