This is an archive of the discontinued LLVM Phabricator instance.

[clangd][NFC] Small tweak to combined provider
ClosedPublic

Authored by njames93 on Nov 21 2020, 3:48 PM.

Details

Summary

This should address the FIXME about clang3.9 dervied to base unique_ptr constructor not working.

Diff Detail

Event Timeline

njames93 created this revision.Nov 21 2020, 3:48 PM
njames93 requested review of this revision.Nov 21 2020, 3:48 PM
njames93 updated this revision to Diff 309486.Dec 4 2020, 1:59 AM

Removed const qualifier on Providers.

sammccall accepted this revision.Dec 8 2020, 6:25 AM

(I'm not sure how it resolves the problem, but certainly looks nicer!)

This revision is now accepted and ready to land.Dec 8 2020, 6:25 AM

(I'm not sure how it resolves the problem, but certainly looks nicer!)

It's something to do with the derived to base unique_ptr conversion not working properly with NRVO.
However removing the named variable should elide that, and as an added bonus it does look neater.

This revision was landed with ongoing or failed builds.Dec 8 2020, 9:13 AM
This revision was automatically updated to reflect the committed changes.