commit | ca45725c80d2836f3f7441b27ff6e7c2f6421fc7 | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Wed Nov 12 17:02:02 2014 +0000 |
committer | The Android Automerger <android-build@google.com> | Mon Nov 17 14:03:50 2014 -0800 |
tree | 13ece8f832b7af8082db5784bbef6389f6d400e8 | |
parent | 4c3f0d4df0af33c8940d6489996f4e8e9f2c6ecd [diff] |
Fix LinkFieldsComparator. Define order for primitive types with the same sizes. Previously, the comparator would consider the fields equal so the order would depend on std::sort() implementation. Changing the STL implementation could silently change the field offsets. (And, unlike std::stable_sort(), the std::sort() doesn't even need to be deterministic.) (cherry picked from commit d577748c041aa6df599218f3cb31697ecf032730) Change-Id: I9b769d023864aa36c52918c7c3dd11c0f6b8f40e