[gnu-objc] Make selector order deterministic.
authorDavid Chisnall <csdavec@swan.ac.uk>
Tue, 14 Aug 2018 10:05:25 +0000 (10:05 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Tue, 14 Aug 2018 10:05:25 +0000 (10:05 +0000)
commitc66d480bce3c18d9a665875e4d87b4ad507a6a82
tree780c5e7526788c66b442b6028845b8e1df8ca8f8
parent060a789c844dc1f3a4a1843766bbdaafe40f87d7
[gnu-objc] Make selector order deterministic.

Summary:
This probably fixes PR35277, though there may be other sources of
nondeterminism (this was the only case of iterating over a DenseMap).

It's difficult to provide a test case for this, because it shows up only
on systems with ASLR enabled.

Reviewers: rjmccall

Reviewed By: rjmccall

Subscribers: bmwiedemann, mgrang, cfe-commits

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

llvm-svn: 339668
clang/lib/CodeGen/CGObjCGNU.cpp
clang/test/CodeGenObjC/gnu-deterministic-selectors.m [new file with mode: 0644]