[llvm] r224103 - Use unique_ptr operator= instead of constructor to make it explicit that there's no conversion occurring.
Craig Topper
craig.topper at gmail.com
Thu Dec 11 23:52:00 PST 2014
Author: ctopper
Date: Fri Dec 12 01:52:00 2014
New Revision: 224103
URL: http://llvm.org/viewvc/llvm-project?rev=224103&view=rev
Log:
Use unique_ptr operator= instead of constructor to make it explicit that there's no conversion occurring.
Modified:
llvm/trunk/tools/llc/llc.cpp
Modified: llvm/trunk/tools/llc/llc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llc/llc.cpp?rev=224103&r1=224102&r2=224103&view=diff
==============================================================================
--- llvm/trunk/tools/llc/llc.cpp (original)
+++ llvm/trunk/tools/llc/llc.cpp Fri Dec 12 01:52:00 2014
@@ -289,8 +289,8 @@ static int compileModule(char **argv, LL
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.
More information about the llvm-commits
mailing list