diff options
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/LayoutPass.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/MachO/LayoutPass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp index e754c3157ed..ddf3a870035 100644 --- a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp +++ b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp @@ -484,11 +484,11 @@ void LayoutPass::perform(std::unique_ptr<MutableFile> &mergedFile) { } void addLayoutPass(PassManager &pm, const MachOLinkingContext &ctx) { - pm.add(std::unique_ptr<Pass>(new LayoutPass( + pm.add(llvm::make_unique<LayoutPass>( ctx.registry(), [&](const DefinedAtom * left, const DefinedAtom * right, bool & leftBeforeRight) ->bool { return ctx.customAtomOrderer(left, right, leftBeforeRight); - }))); + })); } } // namespace mach_o |

