CodeGen: Fix TargetLowering::LowerCallTo for sret value type
ClosedPublic

Authored by yaxunl on Mon, Nov 13, 8:18 PM.

Details

Summary

TargetLowering::LowerCallTo assumes that sret value type corresponds to a
pointer in default address space, which is incorrect, since sret value type
should correspond to a pointer in alloca address space, which may not
be the default address space. This causes assertion for amdgcn target
in amdgiz environment.

This patch fixes that.

Diff Detail

Repository
rL LLVM
yaxunl created this revision.Mon, Nov 13, 8:18 PM
arsenm accepted this revision.Mon, Nov 13, 10:08 PM

LGTM

This revision is now accepted and ready to land.Mon, Nov 13, 10:08 PM
This revision was automatically updated to reflect the committed changes.