[PATCH] D75285: Mark restrict pointer or reference to const as invariant
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 27 13:04:41 PST 2020
rjmccall added a comment.
Unfortunately, `const` also doesn't mean that the memory doesn't change. It does mean it can't be changed through this pointer, but `restrict` allows you to derive more pointers from it within the `restrict` scope, and those pointers can remove the `const` qualifier.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75285/new/
https://reviews.llvm.org/D75285
More information about the cfe-commits
mailing list