This is an archive of the discontinued LLVM Phabricator instance.

lld: use `std::make_unique` rather than spelling out types twice
ClosedPublic

Authored by compnerd on Jun 3 2020, 11:12 AM.

Details

Reviewers
smeenai
int3
Summary

The LLVM code base already uses C++14, use std::make_unique
to avoid the explicit constructor invocation via new and to avoid
spelling out the type twice.

Diff Detail

Event Timeline

compnerd created this revision.Jun 3 2020, 11:12 AM
Herald added a project: Restricted Project. ยท View Herald TranscriptJun 3 2020, 11:12 AM
int3 accepted this revision.Jun 3 2020, 11:38 AM

Seems fine but this code is part of the old lld-macho and will likely be removed in the near future

This revision is now accepted and ready to land.Jun 3 2020, 11:38 AM