20 lines · plain
1; RUN: opt < %s -passes=inline -disable-output 2>/dev/null2; This test used to trigger an assertion in the assumption cache when3; inlining the indirect call4declare void @llvm.assume(i1)5 6define void @foo() {7 ret void8}9 10define void @bar(ptr) {11 call void @llvm.assume(i1 true)12 call void %0();13 ret void14}15 16define void @baz() {17 call void @bar(ptr @foo)18 ret void19}20