[PATCH] D42530: Clang permits assignment to vector/extvector elements in a const method

John McCall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 08:44:47 PST 2018


rjmccall added a comment.

If you just want a better diagnostic, there's quite a bit of machinery already set up to give more specific errors about why such-and-such l-value isn't modifiable.  There may even be vector-specific diagnostics for that already, just triggered from the wrong place in the code.


https://reviews.llvm.org/D42530





More information about the llvm-commits mailing list