summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/main.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-09-25 16:14:53 +0000
committerReid Kleckner <rnk@google.com>2017-09-25 16:14:53 +0000
commit8898cd8dcf71e03349bc0c7f9d50a0bf6af573bc (patch)
tree4d09e7838f03e9c3c02b4e0801b59b56005bfd24 /lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/main.cpp
parent09e75c9399900342c5cd935d7d7e273bfa0eca82 (diff)
downloadbcm5719-llvm-8898cd8dcf71e03349bc0c7f9d50a0bf6af573bc.tar.gz
bcm5719-llvm-8898cd8dcf71e03349bc0c7f9d50a0bf6af573bc.zip
[DebugInfo] Sort the SDDbgValue list before assuming it is in IR order
Summary: This code iterates the 'Orders' vector in parallel with the DbgValue list, emitting all DBG_VALUEs that occurred between the last IR order insertion point and the next insertion point. This assumes the SDDbgValue list is sorted in IR order, which it usually is. However, it is not sorted when a node with a debug value is replaced with another one. When this happens, TransferDbgValues is called, and the new value is added to the end of the list. The problem can be solved by stably sorting the list by IR order. Reviewers: aprantl, Ka-Ka Reviewed By: aprantl Subscribers: MatzeB, hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D38197 llvm-svn: 314114
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud