Quuxplusone added a comment.
This could use some tests. (What's observably bad about the old code's
behavior? does this patch fix that behavior?)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93962/new/
https://reviews.llvm.org/D93962
___
nullptr.cpp created this revision.
nullptr.cpp requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
According to [dcl.init.ref]p5:
> A reference to type “cv1 T1” is initialized by an expression of type “cv2 T2”
> as follows:
>
> — If the ref