Skip to content

Commit df288fd

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3148,7 +3148,7 @@ void SelectionDAGBuilder::visitSPDescriptorFailure(
31483148
// First create the loads to the guard/stack slot for the comparison.
31493149
auto &DL = DAG.getDataLayout();
31503150
EVT PtrTy = TLI.getFrameIndexTy(DL);
3151-
EVT PtrMemTy = TLI.getPointerMemTy(DL);
3151+
EVT PtrMemTy = TLI.getPointerMemTy(DL, DL.getAllocaAddrSpace());
31523152

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

0 commit comments

Comments
 (0)