diff --git a/lld/MachO/Driver.cpp b/lld/MachO/Driver.cpp index f4531e42ad13..2a3b0042162e 100644 --- a/lld/MachO/Driver.cpp +++ b/lld/MachO/Driver.cpp @@ -178,8 +178,7 @@ static void addFile(StringRef path) { if (!result) return; - std::unique_ptr interface{std::move(*result)}; - inputFiles.push_back(make(std::move(interface))); + inputFiles.push_back(make(std::move(*result))); break; } default: