nridge added a comment.

Sorry, I'm travelling and probably won't be able to respond promptly, but my 
first thought here is that this doesn't seem as well motivated as 
`usedAsMutableReference`, since taking a pointer to an object involves using 
explicit syntax (`&obj`) that taking a reference does not. My mental model of 
`usedAsMutableReference` is that it's a workaround for the fact that C++ does 
not have explicit syntax for forming a mutable reference (compare Rust's `ref 
obj` which in my mind makes this modifier likewise unnecessary there).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130015/new/

https://reviews.llvm.org/D130015

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to