[all-commits] [llvm/llvm-project] 810e4c: [DebugInfo] Correctly update dbg.values with dupli...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Wed Jul 14 03:19:44 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 810e4c3c66ed69ba82af687fc2a184bae874ca08
      https://github.com/llvm/llvm-project/commit/810e4c3c66ed69ba82af687fc2a184bae874ca08
  Author: Stephen Tozer <Stephen.Tozer at Sony.com>
  Date:   2021-07-14 (Wed, 14 Jul 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64StackTagging.cpp
    M llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
    M llvm/lib/Transforms/Utils/Local.cpp
    M llvm/test/CodeGen/AArch64/stack-tagging-dbg.ll
    A llvm/test/DebugInfo/salvage-duplicate-values.ll
    M llvm/test/Instrumentation/HWAddressSanitizer/alloca.ll

  Log Message:
  -----------
  [DebugInfo] Correctly update dbg.values with duplicated location ops

This patch fixes code that incorrectly handled dbg.values with duplicate
location operands, i.e. !DIArgList(i32 %a, i32 %a). The errors in
question were caused by either applying an update to dbg.value multiple
times when the update is only valid once, or by updating the
DIExpression for only the first instance of a value that appears
multiple times.

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




More information about the All-commits mailing list