[BOLT][DWARF] Fix handling of multiple DW_OP_addrx in an expression
authorAlexander Yermolovich <ayermolo@fb.com>
Mon, 1 Aug 2022 21:38:47 +0000 (14:38 -0700)
committerAlexander Yermolovich <ayermolo@fb.com>
Mon, 1 Aug 2022 21:38:47 +0000 (14:38 -0700)
commitdd29b3c5420193118dc0efa6cb3e942e26680c43
tree65ce49e5d5090f71f476d7583adf50c0c655bec8
parent0a1769214890eabf0e4edaaf8b1c251bf92f60f2
[BOLT][DWARF] Fix handling of multiple DW_OP_addrx in an expression

We were not handling correclty multiple DW_OP_addrx in the location expression.
This was exposed by clang-15 build in release mode with debug information.

Reviewed By: maksfb

Differential Revision: https://reviews.llvm.org/D130812
bolt/lib/Rewrite/DWARFRewriter.cpp
bolt/test/X86/dwarf5-multiple-dw-op-addrx-locexpr.s [new file with mode: 0644]