summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-10-11 07:42:08 +0000
committerRui Ueyama <ruiu@google.com>2013-10-11 07:42:08 +0000
commit8e5c2788f64fabfdb87807a20bedda27bd8439e1 (patch)
tree48b84133817ed7e48e36962461a1f7930513663a
parent49457d2767766677d8cada6c157561b045a3b1ad (diff)
downloadbcm5719-llvm-8e5c2788f64fabfdb87807a20bedda27bd8439e1.tar.gz
bcm5719-llvm-8e5c2788f64fabfdb87807a20bedda27bd8439e1.zip
Simplify unique_ptr instantiation. No functionality change.
llvm-svn: 192427
-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