[PATCH] D53417: [Clang][Sema][PowerPC] Choose a better candidate in overload function call if there is a compatible vector conversion instead of ambiguous call error

Zixuan Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 13 04:08:36 PST 2018


wuzish added inline comments.


================
Comment at: clang/test/CodeGen/altivec-generic-overload.c:74
+  convert1(gv1);
+  // CHECK: call void @_Z8convert1Dv16_a(<16 x i8> %{{[0-9]+}})
+  convert1(gv2);
----------------
hubert.reinterpretcast wrote:
> Checking that the call is to the expected target in terms of overload resolution can be achieved by having a distinct return types for each member of the overload set.
What's meaning of `having a distinct return types for each member of the overload set`?

Could you please give a example to show your expect?


https://reviews.llvm.org/D53417





More information about the cfe-commits mailing list