Simplify unique_ptr instantiation. No functionality change.

llvm-svn: 192427
This commit is contained in:
Rui Ueyama 2013-10-11 07:42:08 +00:00
parent 49457d2767
commit 8e5c2788f6
1 changed files with 3 additions and 4 deletions

View File

@ -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