llvm-project
2c12a3df - [Sema][AArch64] Emit error for mismatched VLs on streaming mode transitions (#159131)

Commit
213 days ago
[Sema][AArch64] Emit error for mismatched VLs on streaming mode transitions (#159131) Update Sema::checkCall to handle the case where a call involves a streaming mode transition and passes or returns scalable vector types. Previously, Clang always issued a warning in this case, noting that the streaming and non-streaming vector lengths may differ at runtime. With this change: - if both `-msve-vector-bits` and `-msve-streaming-vector-bits` are specified and produce different fixed VL values, Clang now emits an error rather than a warning - If either flag is missing or vector lengths are equal, the diagnostic remains a warning
Author
Parents
Loading