CodeGenObjCXX: handle inalloca appropriately for msgSend variant
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 28 Feb 2018 20:16:12 +0000 (20:16 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 28 Feb 2018 20:16:12 +0000 (20:16 +0000)
commitf181f1a6a206f427860e999768259e81a94f6d6a
tree4ebd366f7f0762e9eccd0fa51188f0a9e8220287
parentb95298b041c4adc5df405f9549b7aef46948915f
CodeGenObjCXX: handle inalloca appropriately for msgSend variant

objc_msgSend_stret takes a hidden parameter for the returned structure's
address for the construction.  When the function signature is rewritten
for the inalloca passing, the return type is no longer marked as
indirect but rather inalloca stret.  This enhances the test for the
indirect return to check for that case as well.  This fixes the
incorrect return classification for Windows x86.

llvm-svn: 326362
clang/lib/CodeGen/CGCall.cpp
clang/test/CodeGenObjCXX/msabi-stret.mm [new file with mode: 0644]