kazu added a comment.

Thanks for the review!

In D138466#3942622 <https://reviews.llvm.org/D138466#3942622>, @MaskRay wrote:

> `getPointer` asserts `hasValue`, so `&*` is safe,

Yes.  `operator*` also asserts `hasVal` via `value()`, so we maintain the same 
level of safety.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138466

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

Reply via email to