[PATCH] D77785: Use FrameIndexTy for stack protector
Alexander Richardson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 05:22:47 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbbcfce4badac: Use FrameIndexTy for stack protector (authored by arichardson).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77785/new/
https://reviews.llvm.org/D77785
Files:
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -6360,7 +6360,7 @@
int FI = FuncInfo.StaticAllocaMap[Slot];
MFI.setStackProtectorIndex(FI);
- EVT PtrTy = Src.getValueType();
+ EVT PtrTy = TLI.getFrameIndexTy(DAG.getDataLayout());
SDValue FIN = DAG.getFrameIndex(FI, PtrTy);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77785.259539.patch
Type: text/x-patch
Size: 501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200423/c21ec046/attachment.bin>
More information about the llvm-commits
mailing list