This patch is to remove the erroneous lax vector conversion warning for CStyle; explicit; casts
that was added as part of D126540.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
LGTM other than the missing template test.
clang/test/Parser/lax-conv.cpp | ||
---|---|---|
5 | Can you also add one template test? template <typename VEC> VEC __attribute__((noinline)) test(vector unsigned char a, vector unsigned char b) { return (VEC)(a * b); } vector unsigned char test1(vector unsigned char a, vector unsigned char b) { return test<vector unsigned char>(a, b); } vector unsigned long long test2(vector unsigned char a, vector unsigned char b) { return test<vector unsigned long long>(a, b); } |
Can you also add one template test?