diff --git a/llvm/lib/Transforms/Utils/Debugify.cpp b/llvm/lib/Transforms/Utils/Debugify.cpp --- a/llvm/lib/Transforms/Utils/Debugify.cpp +++ b/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;