Restore part of D80450 [CUDA][HIP] Fix implicit HD function resolution
authorFangrui Song <maskray@google.com>
Thu, 11 Jun 2020 05:32:43 +0000 (22:32 -0700)
committerFangrui Song <maskray@google.com>
Thu, 11 Jun 2020 05:33:33 +0000 (22:33 -0700)
commitb3d10920e13446efaebb201612328cf0644709f8
tree3c10a75d73d797b820a890df8711185e44a8a432
parent1385ab356ab5d155af4cfa3ab9af7f3dbe7d3bea
Restore part of D80450 [CUDA][HIP] Fix implicit HD function resolution

The "if (S.getLangOpts().CUDA && Cand1.Function && Cand2.Function) {"
part is known to be problematic but the root cause isn't clear yet.
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaCUDA.cpp
clang/lib/Sema/SemaOverload.cpp