[PATCH] D151060: [Clang][Sema] Generate vector vs scalar builtin overloads
Cassie Jones via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun May 21 23:51:06 PDT 2023
porglezomp created this revision.
porglezomp added reviewers: aaron.ballman, fhahn.
Herald added a subscriber: StephenFan.
Herald added a project: All.
porglezomp requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The bit-shifting operator builtin support vector vs scalars, but the
operator overloads did not. That mismatch caused an assertion failure
when trying to shift a vector by an enum.
This makes C++ match the behavior of C for these conversions on
bit-shifts.
rdar://108819842
Depends on D151059 <https://reviews.llvm.org/D151059>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151060
Files:
clang/lib/Sema/SemaOverload.cpp
clang/test/SemaCXX/vector.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151060.524169.patch
Type: text/x-patch
Size: 4785 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230522/7a1ea801/attachment.bin>
More information about the cfe-commits
mailing list