arsenm wrote: > I think clang shall refuse it. It is like a store to const, just like to constant. Clang doesn't know it's a constant store. You can always cast the pointer and access it somewhere else https://github.com/llvm/llvm-project/pull/153835