[PATCH] D77954: [CUDA][HIP] Fix host/device based overload resolution

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 23 10:48:17 PDT 2020


rjmccall added a comment.

Okay, one minor fix.



================
Comment at: clang/lib/Sema/SemaOverload.cpp:9389
+  if (Cand2.Function->isInvalidDecl())
+    return Comparison::Better;
 
----------------
This is neglecting the case where they're both invalid.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77954/new/

https://reviews.llvm.org/D77954





More information about the cfe-commits mailing list