diff options
author | JF Bastien <jfbastien@apple.com> | 2019-08-15 17:47:19 +0000 |
---|---|---|
committer | JF Bastien <jfbastien@apple.com> | 2019-08-15 17:47:19 +0000 |
commit | 7a210d65edc6d7fa4f8e828a9fc967e73f26b24d (patch) | |
tree | f8b1004264ffbd9ddc3baa1b2774a57a650f90e0 /llvm/lib/Analysis/LazyCallGraph.cpp | |
parent | 6eebd2bcd7bf50a0362927adf7222f6076746307 (diff) | |
download | llvm-7a210d65edc6d7fa4f8e828a9fc967e73f26b24d.zip llvm-7a210d65edc6d7fa4f8e828a9fc967e73f26b24d.tar.gz llvm-7a210d65edc6d7fa4f8e828a9fc967e73f26b24d.tar.bz2 |
Fix lld on GCC 5.1 after the C++14 move
Summary:
libstdc++ in GCC 5.1 has some bugs. The move to C++14 in D66195 triggered one
such bug caused by the new constexpr support in C++14, and the implementation
doing SFINAE wrong with the comparator to std::stable_sort.
Here's a small repro: https://godbolt.org/z/2QC3-n
The fix is to inline the lambdas directly into the llvm::stable_sort call
instead of erasing them through a std::function. The code is more readable as
well.
Reviewers: thakis, ruiu, espindola
Subscribers: emaste, arichardson, MaskRay, jkorous, dexonsmith, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66306
llvm-svn: 369023
Diffstat (limited to 'llvm/lib/Analysis/LazyCallGraph.cpp')
0 files changed, 0 insertions, 0 deletions