[PATCH] D101389: [clang][CodeGen] Fix address space for sret

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 28 19:05:31 PDT 2021


rjmccall added a comment.

I think this is intentional; requiring the indirect-result parameter to be in the alloca address space would prevent direct initialization of non-temporary memory, which is an important optimization in C++.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101389/new/

https://reviews.llvm.org/D101389



More information about the cfe-commits mailing list