forked from OSchip/llvm-project
DAG: Correct pointer type used for stack slot
Correct the address space for the inserted argument stack slot. AMDGPU seems to not do anything with this information, so I don't think this was breaking anything. llvm-svn: 338428
This commit is contained in:
parent
3b238ed662
commit
dcec0888e2
|
@ -8335,7 +8335,8 @@ TargetLowering::LowerCallTo(TargetLowering::CallLoweringInfo &CLI) const {
|
||||||
unsigned Align = DL.getPrefTypeAlignment(CLI.RetTy);
|
unsigned Align = DL.getPrefTypeAlignment(CLI.RetTy);
|
||||||
MachineFunction &MF = CLI.DAG.getMachineFunction();
|
MachineFunction &MF = CLI.DAG.getMachineFunction();
|
||||||
DemoteStackIdx = MF.getFrameInfo().CreateStackObject(TySize, Align, false);
|
DemoteStackIdx = MF.getFrameInfo().CreateStackObject(TySize, Align, false);
|
||||||
Type *StackSlotPtrType = PointerType::getUnqual(CLI.RetTy);
|
Type *StackSlotPtrType = PointerType::get(CLI.RetTy,
|
||||||
|
DL.getAllocaAddrSpace());
|
||||||
|
|
||||||
DemoteStackSlot = CLI.DAG.getFrameIndex(DemoteStackIdx, getFrameIndexTy(DL));
|
DemoteStackSlot = CLI.DAG.getFrameIndex(DemoteStackIdx, getFrameIndexTy(DL));
|
||||||
ArgListEntry Entry;
|
ArgListEntry Entry;
|
||||||
|
|
Loading…
Reference in New Issue