diff options
author | Sam Clegg <sbc@chromium.org> | 2021-10-29 13:30:41 -0700 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2021-10-29 13:34:18 -0700 |
commit | 3b039c68f2c1d9f9a9ee0b370b88ca5647ce647f (patch) | |
tree | c694b7144af7317586e88c8ff696c82366a40066 /llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp | |
parent | 0121c96f375edd365727819a466f45492ce620e9 (diff) | |
download | llvm-3b039c68f2c1d9f9a9ee0b370b88ca5647ce647f.zip llvm-3b039c68f2c1d9f9a9ee0b370b88ca5647ce647f.tar.gz llvm-3b039c68f2c1d9f9a9ee0b370b88ca5647ce647f.tar.bz2 |
Revert "[WebAssembly] Fix debug locations for ExplicitLocals pass"
This reverts commit a66451ebbe450a5e9dc6baf0c4e9f5738df589a2.
This caused a failure when integrated with emscripten:
https://ci.chromium.org/ui/p/emscripten-releases/builders/try/linux/b8832019855439718609/overview
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp index da8b742..a933d1a 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp @@ -379,13 +379,8 @@ bool WebAssemblyExplicitLocals::runOnMachineFunction(MachineFunction &MF) { const TargetRegisterClass *RC = MRI.getRegClass(OldReg); Register NewReg = MRI.createVirtualRegister(RC); unsigned Opc = getLocalGetOpcode(RC); - // Use a blank DebugLoc, because InsertPt may be discontinuous from - // the usage of this value, causing non-linear stepping in the - // debugger or function entry points where variables aren't live yet. - // See crbug.com/1251909, crbug.com/1249745 - DebugLoc DL; InsertPt = - BuildMI(MBB, InsertPt, DL, TII->get(Opc), NewReg) + BuildMI(MBB, InsertPt, MI.getDebugLoc(), TII->get(Opc), NewReg) .addImm(LocalId); MO.setReg(NewReg); MFI.stackifyVReg(MRI, NewReg); |