Go to file
Thomas Anderson 3c3ccc0049 [libc++] Fix build failure with _LIBCPP_DEBUG=0 when iterators return values instead of references
There are many STL algorithms (such as lexicographical_compare) that compare
values pointed to by iterators like so:
    __comp(*it1, *it2);
	
When building with `_LIBCPP_DEBUG=0`, comparators are wrapped in `__debug_less`
which does some additional validation.  But `__debug_less::operator()` takes
non-const references, so if the type of `*it1` is int, not int&, then the build
will fail.

This change adds a `const&` overload for `operator()` to fix the build.

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

llvm-svn: 358423
2019-04-15 17:02:15 +00:00
clang Revert r358337: "[CommandLineParser] Add DefaultOption flag" 2019-04-15 14:43:50 +00:00
clang-tools-extra [clangd] Fallback to OrigD when SLoc is invalid 2019-04-15 14:38:46 +00:00
compiler-rt [libFuzzer] speedup the merge step in the fork mode by merging only the files that have unique features. 2019-04-13 01:57:33 +00:00
debuginfo-tests Set config.lit_tools_dir, which is needed by lit.llvm.initialize. 2018-11-06 21:54:27 +00:00
libclc travis: Add LLVM-8 build 2019-03-27 21:28:31 +00:00
libcxx [libc++] Fix build failure with _LIBCPP_DEBUG=0 when iterators return values instead of references 2019-04-15 17:02:15 +00:00
libcxxabi Fix PR41465 - Use __builtin_mul_overflow instead of hand-rolled check. 2019-04-11 17:16:35 +00:00
libunwind [NFC] Move the export attribute after extern "C". 2019-04-12 18:34:19 +00:00
lld [COFF] Link crtend.o as the last object file 2019-04-15 10:57:44 +00:00
lldb Prevent unnecessary conversion from StringRef to C-string [NFC] 2019-04-14 14:01:49 +00:00
llgo IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
llvm [PGO] Profile guided code size optimization. 2019-04-15 16:49:00 +00:00
openmp Fixed possible out of bound array access. 2019-04-11 15:03:44 +00:00
parallel-libs Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
polly Apply include-what-you-use #include removal suggestions. NFC. 2019-03-28 20:19:49 +00:00
pstl [NFC] Add explicit return from main() in tests 2019-04-12 18:38:58 +00:00
.arcconfig Update monorepo .arcconfig with new project callsign. 2019-01-31 14:34:59 +00:00
.clang-format Add .clang-tidy and .clang-format files to the toplevel of the 2019-01-29 16:43:16 +00:00
.clang-tidy Disable tidy checks with too many hits 2019-02-01 11:20:13 +00:00
.gitignore Add a reduced copy of the llvm .gitignore 2019-04-09 00:52:49 +00:00
README.md

README.md

The LLVM Compiler Infrastructure

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.