llvm-project
2e19a547 - [Clang][Sema] Report diagnostic for invalid mask in shufflevector (#221558)

Commit
71 days ago
[Clang][Sema] Report diagnostic for invalid mask in shufflevector (#221558) Clang used to accept a vector with an integer representation as a valid mask; otherwise, it reported a type mismatch. This led to accepting a vector of booleans as a valid mask and reporting that types are not equal if both arguments are equal but not vectors of integers. Currently, it checks for the mask type and reports a clear error message if the mask is a vector of bool or not a vector of integers Fixes: #218132
Author
Parents
Loading