[lld] r192427 - Simplify unique_ptr instantiation. No functionality change.
Rui Ueyama
ruiu at google.com
Fri Oct 11 00:42:08 PDT 2013
Author: ruiu
Date: Fri Oct 11 02:42:08 2013
New Revision: 192427
URL: http://llvm.org/viewvc/llvm-project?rev=192427&view=rev
Log:
Simplify unique_ptr instantiation. No functionality change.
Modified:
lld/trunk/lib/Driver/GnuLdDriver.cpp
Modified: lld/trunk/lib/Driver/GnuLdDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/GnuLdDriver.cpp?rev=192427&r1=192426&r2=192427&view=diff
==============================================================================
--- lld/trunk/lib/Driver/GnuLdDriver.cpp (original)
+++ lld/trunk/lib/Driver/GnuLdDriver.cpp Fri Oct 11 02:42:08 2013
@@ -270,10 +270,9 @@ bool GnuLdDriver::parse(int argc, const
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
More information about the llvm-commits
mailing list