summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/lib/Driver/GnuLdDriver.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lld/lib/Driver/GnuLdDriver.cpp b/lld/lib/Driver/GnuLdDriver.cpp
index d623b4e64b4..4a971fca069 100644
--- a/lld/lib/Driver/GnuLdDriver.cpp
+++ b/lld/lib/Driver/GnuLdDriver.cpp
@@ -270,10 +270,9 @@ bool GnuLdDriver::parse(int argc, const char *argv[],
case OPT_INPUT:
case OPT_l: {
- std::unique_ptr<InputElement> inputFile =
- std::move(std::unique_ptr<InputElement>(new ELFFileNode(
- *ctx, inputArg->getValue(), searchPath, index++, isWholeArchive,
- asNeeded, inputArg->getOption().getID() == OPT_l)));
+ std::unique_ptr<InputElement> inputFile(new ELFFileNode(
+ *ctx, inputArg->getValue(), searchPath, index++, isWholeArchive,
+ asNeeded, inputArg->getOption().getID() == OPT_l));
if (controlNodeStack.empty())
inputGraph->addInputElement(std::move(inputFile));
else
OpenPOWER on IntegriCloud