]> granicus.if.org Git - clang/commit
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)
commit896bb7d0d1d9a877403376fa6dd50ea452947300
tree89ab81986f93783d5d5c8b4fc428a06a8d1ca399
parentfd9725179fb23fcc884e5cbc01359caf96d9ef76
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326362 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
test/CodeGenObjCXX/msabi-stret.mm [new file with mode: 0644]