mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-18 17:39:04 +00:00
Propagate return result extension type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75925 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3f2122bea8
commit
0692fabb4e
@ -981,6 +981,13 @@ void SelectionDAGLowering::visitRet(ReturnInst &I) {
|
||||
ISD::ArgFlagsTy Flags = ISD::ArgFlagsTy();
|
||||
if (F->paramHasAttr(0, Attribute::InReg))
|
||||
Flags.setInReg();
|
||||
|
||||
// Propagate extension type if any
|
||||
if (F->paramHasAttr(0, Attribute::SExt))
|
||||
Flags.setSExt();
|
||||
else if (F->paramHasAttr(0, Attribute::ZExt))
|
||||
Flags.setZExt();
|
||||
|
||||
for (unsigned i = 0; i < NumParts; ++i) {
|
||||
NewValues.push_back(Parts[i]);
|
||||
NewValues.push_back(DAG.getArgFlags(Flags));
|
||||
|
Loading…
Reference in New Issue
Block a user