HomePhabricator

[SafeStack][DebugInfo] Insert DW_OP_deref in correct location

Authored by leonardchan on Jan 28 2020, 12:30 PM.

Description

[SafeStack][DebugInfo] Insert DW_OP_deref in correct location

This patch addresses the issue found in https://bugs.llvm.org/show_bug.cgi?id=44585
where a DW_OP_deref was placed at the end of a dwarf expression, resulting in
corrupt symbols when debugging.

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