Skip to content

Commit 774fbf9

Browse files
Apply suggestions from code review
Co-authored-by: Eli Friedman <[email protected]>
1 parent a7042fe commit 774fbf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3038,8 +3038,8 @@ void SelectionDAGBuilder::visitSPDescriptorParent(StackProtectorDescriptor &SPD,
30383038
// First create the loads to the guard/stack slot for the comparison.
30393039
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
30403040
auto &DL = DAG.getDataLayout();
3041-
EVT PtrTy = TLI.getPointerTy(DL);
3042-
EVT PtrMemTy = TLI.getPointerMemTy(DL);
3041+
EVT PtrTy = TLI.getFrameIndexTy(DL);
3042+
EVT PtrMemTy = TLI.getPointerMemTy(DL, DL.getAllocaAddrSpace());
30433043

30443044
MachineFrameInfo &MFI = ParentBB->getParent()->getFrameInfo();
30453045
int FI = MFI.getStackProtectorIndex();

0 commit comments

Comments
 (0)