[lld] 7be1661 - lld/MachO: Remove a useless temporary

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 21:07:13 PDT 2020


Author: Nico Weber
Date: 2020-07-02T00:05:43-04:00
New Revision: 7be1661fc6ed3f5c0d0365f5528717707757a382

URL: https://github.com/llvm/llvm-project/commit/7be1661fc6ed3f5c0d0365f5528717707757a382
DIFF: https://github.com/llvm/llvm-project/commit/7be1661fc6ed3f5c0d0365f5528717707757a382.diff

LOG: lld/MachO: Remove a useless temporary

Added: 
    

Modified: 
    lld/MachO/Driver.cpp

Removed: 
    


################################################################################
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<llvm::MachO::InterfaceFile> interface{std::move(*result)};
-    inputFiles.push_back(make<DylibFile>(std::move(interface)));
+    inputFiles.push_back(make<DylibFile>(std::move(*result)));
     break;
   }
   default:


        


More information about the llvm-commits mailing list