[all-commits] [llvm/llvm-project] c95b32: [Assignment Tracking] Fix replaceVariableLocationO...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Tue Apr 11 09:20:32 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c95b322b738b63abedb0483bafe08b92c3de8e31
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2023-04-11 (Tue, 11 Apr 2023)

  Changed paths:
    M llvm/lib/IR/IntrinsicInst.cpp
    M llvm/unittests/IR/DebugInfoTest.cpp

  Log Message:
  [Assignment Tracking] Fix replaceVariableLocationOp for dbg.assign with DIArgList

The last time this function was updated DIArgLists were not supported for
dbg.assigns. Without this patch it's possible to now dereference an invalid
(the end) iterator. This occurs when the Address component gets replaced and
there's a DIArgList for the Value component (the contained values are

The added unittest crashes without the code change in this patch.

Reviewed By: jmorse

Differential Revision: https://reviews.llvm.org/D147922

More information about the All-commits mailing list