Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AIX][TOC] -mtocdata/-mno-tocdata fix non deterministic iteration ord…
…er (#86840) Failure with testcase toc-conf.c observed when building with LLVM_REVERSE_ITERATION=ON. Changing from using llvm::StringSet to std::set<llvm:StringRef> to ensure iteration order is deterministic. Note: the functionality of the feature does not require a specific iteration order, however, this will allow testing to be consistent. From llvm docs: The advantages of std::set are that its iterators are stable (deleting or inserting an element from the set does not affect iterators or pointers to other elements) and that iteration over the set is guaranteed to be in sorted order.
- Loading branch information