2007-05-18-CastFoldBug.ll 310 B

12345678910
  1. ; RUN: opt < %s -instcombine -S | grep "call.*sret"
  2. ; Make sure instcombine doesn't drop the sret attribute.
  3. define void @blah(i16* %tmp10) {
  4. entry:
  5. call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend_stret to void (i16*)*)( i16* sret %tmp10 )
  6. ret void
  7. }
  8. declare i8* @objc_msgSend_stret(i8*, i8*, ...)