[PATCH] D13795: Prefer functions with true enable_if conditions when attempting to resolve the address of an overload

George Burgess IV via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 15 17:43:21 PDT 2015


george.burgess.iv created this revision.
george.burgess.iv added a reviewer: rsmith.
george.burgess.iv added a subscriber: cfe-commits.

Our overload resolution logic considers some candidate A better than some candidate B if the set of A's enable_if conditions is a strict superset of the set of B's enable_if conditions.

Our address-of overload resolution logic does not.

This is suboptimal.

This patch updates the address-of overload resolution logic to behave more like the regular overload resolution logic.

http://reviews.llvm.org/D13795

Files:
  lib/Sema/SemaOverload.cpp
  test/CodeGen/enable_if.c
  test/CodeGenCXX/enable_if.cpp
  test/Sema/enable_if.c
  test/SemaCXX/enable_if.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13795.37545.patch
Type: text/x-patch
Size: 17348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151016/740cdfdd/attachment-0001.bin>


More information about the cfe-commits mailing list