diff options
author | Raphael Isemann <teemperor@gmail.com> | 2020-03-02 14:45:53 -0800 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2020-03-02 15:03:45 -0800 |
commit | b6b3fcdcb8cdfb887e26d27bee03b997d2d65888 (patch) | |
tree | 18fd157bca5bdd017e3099bb33f8fea250806059 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 5565820e6e413d13d210c28850fc31ecfbb64202 (diff) | |
download | llvm-b6b3fcdcb8cdfb887e26d27bee03b997d2d65888.zip llvm-b6b3fcdcb8cdfb887e26d27bee03b997d2d65888.tar.gz llvm-b6b3fcdcb8cdfb887e26d27bee03b997d2d65888.tar.bz2 |
[lldb] Don't iterate over a std::set<Type*> in SymbolFileDWARF::GetTypes to make it deterministic
Summary:
Currently `SymbolFileDWARF::TypeSet` is a typedef to a `std::set<Type *>`.
In `SymbolFileDWARF::GetTypes` we iterate over a TypeSet variable when finding
types so that logic is non-deterministic as it depends on the actual pointer address values.
This patch changes the `TypeSet` to a `llvm::UniqueVector` which always iterates in
the order in which we inserted the types into the list.
Reviewers: JDevlieghere, aprantl
Reviewed By: JDevlieghere
Subscribers: mgrang, abidh, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D75481
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions