2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -instcombine -S | grep {call.*sret}
|
2007-05-19 14:50:37 +08:00
|
|
|
; Make sure instcombine doesn't drop the sret attribute.
|
|
|
|
|
|
|
|
define void @blah(i16* %tmp10) {
|
|
|
|
entry:
|
2011-06-18 01:37:13 +08:00
|
|
|
call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend_stret to void (i16*)*)( i16* sret %tmp10 )
|
2007-05-19 14:50:37 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i8* @objc_msgSend_stret(i8*, i8*, ...)
|