11 lines · plain
1; RUN: opt < %s -passes=instcombine -S | grep "call.*sret"2; Make sure instcombine doesn't drop the sret attribute.3 4define void @blah(ptr %tmp10) {5entry:6 call void @objc_msgSend_stret(ptr sret(i16) %tmp10)7 ret void8}9 10declare ptr @objc_msgSend_stret(ptr, ptr, ...)11