From 7be1661fc6ed3f5c0d0365f5528717707757a382 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 2 Jul 2020 00:04:51 -0400 Subject: [PATCH] lld/MachO: Remove a useless temporary --- lld/MachO/Driver.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: