Use unique_ptr operator= instead of constructor to make it explicit that there's...
authorCraig Topper <craig.topper@gmail.com>
Fri, 12 Dec 2014 07:52:00 +0000 (07:52 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 12 Dec 2014 07:52:00 +0000 (07:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224103 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llc/llc.cpp

index 4157d3fe5adb762086744c7824bcfd343d8c41b4..9014378fcca81c030303780c702d021964640e2b 100644 (file)
@@ -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<tool_output_file> Out(
-      GetOutputStream(TheTarget->getName(), TheTriple.getOS(), argv[0]));
+  std::unique_ptr<tool_output_file> 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.