From 2a4988e8fc365867e2fe6b72ecdf43d7eca45416 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 12 Dec 2014 07:52:00 +0000 Subject: [PATCH] Use unique_ptr operator= instead of constructor to make it explicit that there's no conversion occurring. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224103 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llc/llc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 4157d3fe5ad..9014378fcca 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -289,8 +289,8 @@ static int compileModule(char **argv, LLVMContext &Context) { FloatABIForCalls = FloatABI::Soft; // Figure out where we are going to send the output. - std::unique_ptr Out( - GetOutputStream(TheTarget->getName(), TheTriple.getOS(), argv[0])); + std::unique_ptr Out = + GetOutputStream(TheTarget->getName(), TheTriple.getOS(), argv[0]); if (!Out) return 1; // Build up all of the passes that we want to do to the module.