]> granicus.if.org Git - clang/commit
[CUDA][HIP] Fix typo in `BestViableFunction`
authorMichael Liao <michael.hliao@gmail.com>
Thu, 19 Sep 2019 13:14:03 +0000 (13:14 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Thu, 19 Sep 2019 13:14:03 +0000 (13:14 +0000)
commitf2fcfddc47faf4ca932ace58ca0df87ca4ef0310
treed78bc96c4e478507dd76550540315848d38a30e2
parent23d1a459594f2fcf33a00b355fec6a75b349f38d
[CUDA][HIP] Fix typo in `BestViableFunction`

Summary:
- Should consider viable ones only when checking SameSide candidates.
- Replace erasing with clearing viable flag to reduce data
  moving/copying.
- Add one and revise another one as the diagnostic message are more
  relevant compared to previous one.

Reviewers: tra

Subscribers: cfe-commits, yaxunl

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372318 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/SemaCUDA/function-overload.cu
test/SemaCUDA/implicit-member-target-collision-cxx11.cu