diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-09-02 21:17:18 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2024-01-07 23:04:38 +0000 |
commit | 0e1e0ce556810ad5f9d45485e686f0653530516c (patch) | |
tree | ab02ce7c4fafc0518430e9cec77d41201bce23f0 /contrib/llvm-project/llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp | |
parent | c3eb0b7c19221f3a2133ab14d3ffffa61ec0c4bc (diff) |
Diffstat (limited to 'contrib/llvm-project/llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp b/contrib/llvm-project/llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp index 3a48dd5b0a03..5d3903ed84ce 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp @@ -210,8 +210,9 @@ struct StackFrameLayoutAnalysisPass : public MachineFunctionPass { SlotDbgMap SlotDebugMap; // add variables to the map - for (MachineFunction::VariableDbgInfo &DI : MF.getVariableDbgInfo()) - SlotDebugMap[DI.Slot].insert(DI.Var); + for (MachineFunction::VariableDbgInfo &DI : + MF.getInStackSlotVariableDbgInfo()) + SlotDebugMap[DI.getStackSlot()].insert(DI.Var); // Then add all the spills that have debug data for (MachineBasicBlock &MBB : MF) { |