[PATCH] D80019: [WebAssembly] Fixed debugloc in DebugFixup pass

Wouter van Oortmerssen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 15 10:52:20 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG62efd1eca201: [WebAssembly] Fixed debugloc in DebugFixup pass (authored by aardappel).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80019/new/

https://reviews.llvm.org/D80019

Files:
  llvm/lib/Target/WebAssembly/WebAssemblyDebugFixup.cpp


Index: llvm/lib/Target/WebAssembly/WebAssemblyDebugFixup.cpp
===================================================================
--- llvm/lib/Target/WebAssembly/WebAssemblyDebugFixup.cpp
+++ llvm/lib/Target/WebAssembly/WebAssemblyDebugFixup.cpp
@@ -118,7 +118,7 @@
               // a $noreg DBG_VALUE for the variable to end it, right after
               // the current instruction.
               BuildMI(*Prev.DebugValue->getParent(), std::next(MII),
-                      MI.getDebugLoc(), TII->get(WebAssembly::DBG_VALUE), false,
+                      Prev.DebugValue->getDebugLoc(), TII->get(WebAssembly::DBG_VALUE), false,
                       Register(), Prev.DebugValue->getOperand(2).getMetadata(),
                       Prev.DebugValue->getOperand(3).getMetadata());
             }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80019.264286.patch
Type: text/x-patch
Size: 799 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200515/c9eea4a1/attachment.bin>


More information about the llvm-commits mailing list