This is an archive of the discontinued LLVM Phabricator instance.

toString function take a const refs where possible
ClosedPublic

Authored by sbc100 on Dec 4 2017, 8:24 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Dec 4 2017, 8:24 PM
sbc100 added a reviewer: ruiu.Dec 4 2017, 8:25 PM
sbc100 added a subscriber: llvm-commits.
sbc100 updated this revision to Diff 125468.Dec 4 2017, 8:26 PM
  • revert part
ruiu added inline comments.Dec 4 2017, 8:31 PM
Common/Reproduce.cpp
58 ↗(On Diff #125468)

Did you have to change * to &?

sbc100 added inline comments.Dec 4 2017, 8:43 PM
Common/Reproduce.cpp
58 ↗(On Diff #125468)

Its not necessary, but its consistent with the rest of the code here and in llvm (although they use operator<< on streams there it seems).

Its also a nice hint the reader that this function doesn't accept null isn't it?

If you like I can revert this part.

ruiu accepted this revision.Dec 4 2017, 9:11 PM

I was just wondering if there's a deeper meaning than that. LGTM.

This revision is now accepted and ready to land.Dec 4 2017, 9:11 PM
This revision was automatically updated to reflect the committed changes.