[llvm] r216432 - Analysis: cleanup

Dylan Noblesmith nobled at dreamwidth.org
Mon Aug 25 19:03:41 PDT 2014


Author: nobled
Date: Mon Aug 25 21:03:40 2014
New Revision: 216432

URL: http://llvm.org/viewvc/llvm-project?rev=216432&view=rev
Log:
Analysis: cleanup

Address review comments.

Modified:
    llvm/trunk/lib/Analysis/DependenceAnalysis.cpp

Modified: llvm/trunk/lib/Analysis/DependenceAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/DependenceAnalysis.cpp?rev=216432&r1=216431&r2=216432&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/DependenceAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/DependenceAnalysis.cpp Mon Aug 25 21:03:40 2014
@@ -3674,10 +3674,9 @@ DependenceAnalysis::depends(Instruction
       return nullptr;
   }
 
-  std::unique_ptr<Dependence> Final;
-  Final.reset(new FullDependence(Result));
+  auto Final = make_unique<FullDependence>(Result);
   Result.DV = nullptr;
-  return Final;
+  return std::move(Final);
 }
 
 





More information about the llvm-commits mailing list