A const reference is preferred over a non-null const pointer.
Type * is kept as is to match the other overload.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
Thanks for the change! Mostly LGTM.
For my information, any particular reason that a const reference is preferred over a pointer here?
It's true that raw pointers makes ownership unclear, yet they are not uncommon in the codebase. https://llvm.org/docs/ProgrammersManual.html doesn't seem to mention this either.
Comment Actions
A small heads-up, i'm having D128302 but I could wait for const reference change if we decide to proceed with this.