[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

Hubert Tong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 14 19:17:53 PST 2018


hubert.reinterpretcast accepted this revision.
hubert.reinterpretcast added a comment.
This revision is now accepted and ready to land.

LGTM.



================
Comment at: clang/test/Sema/altivec-generic-overload.c:73
+
+  __v16sc *gv1_p = convert1(gv1);
+  __v16uc *gv2_p = convert1(gv2);
----------------
Using assignment instead of `_Generic` produces only a warning when the types mismatch (at least in certain cases), but that should be okay because we are using `-verify`.


https://reviews.llvm.org/D53417





More information about the cfe-commits mailing list