From: Dylan Noblesmith Date: Tue, 26 Aug 2014 02:03:40 +0000 (+0000) Subject: Analysis: cleanup X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7532912545bf2ed99054b07b22aeb7108b3adcd5;p=oota-llvm.git Analysis: cleanup Address review comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216432 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DependenceAnalysis.cpp b/lib/Analysis/DependenceAnalysis.cpp index be4e487a149..228fd69dce7 100644 --- a/lib/Analysis/DependenceAnalysis.cpp +++ b/lib/Analysis/DependenceAnalysis.cpp @@ -3674,10 +3674,9 @@ DependenceAnalysis::depends(Instruction *Src, Instruction *Dst, return nullptr; } - std::unique_ptr Final; - Final.reset(new FullDependence(Result)); + auto Final = make_unique(Result); Result.DV = nullptr; - return Final; + return std::move(Final); }