HomePhabricator

Fix PR41017 - Build failure with _LIBCPP_DEBUG=0 and non-const-ref

Description

Fix PR41017 - Build failure with _LIBCPP_DEBUG=0 and non-const-ref
comparator for std::sort()

Our debug comparator assumed that the comparator it wraps would always
accepts the values by const ref. This isn't required by the standard.

This patch makes our __debug_less comparator forward the constness.

Details

Committed
EricWFMar 8 2019, 2:58 PM
Parents
rL355751: [CodeGenPrepare] Fix ModifiedDT flag in optimizeSelectInst
Branches
Unknown
Tags
Unknown