[PATCH] D115621: [Debugify] Use WeakWH map collected before Pass when checking loc drop

Djordje Todorovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 13 03:27:01 PST 2021


djtodoro created this revision.
djtodoro added a reviewer: StephenTozer.
djtodoro added a project: LLVM.
Herald added a subscriber: hiraditya.
djtodoro requested review of this revision.
Herald added a subscriber: llvm-commits.

This fixes a typo/bug when checking for pointer reuse when testing DI location preservation in the Debugify original mode (when checking -g generated Debug Info).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115621

Files:
  llvm/lib/Transforms/Utils/Debugify.cpp


Index: llvm/lib/Transforms/Utils/Debugify.cpp
===================================================================
--- llvm/lib/Transforms/Utils/Debugify.cpp
+++ llvm/lib/Transforms/Utils/Debugify.cpp
@@ -596,7 +596,7 @@
   auto DILocsBefore = DIPreservationMap[NameOfWrappedPass].DILocations;
   auto DILocsAfter = DIPreservationAfter[NameOfWrappedPass].DILocations;
 
-  auto InstToDelete = DIPreservationAfter[NameOfWrappedPass].InstToDelete;
+  auto InstToDelete = DIPreservationMap[NameOfWrappedPass].InstToDelete;
 
   auto DIVarsBefore = DIPreservationMap[NameOfWrappedPass].DIVariables;
   auto DIVarsAfter = DIPreservationAfter[NameOfWrappedPass].DIVariables;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115621.393831.patch
Type: text/x-patch
Size: 668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211213/b42a8ec2/attachment.bin>


More information about the llvm-commits mailing list