From 43f49cad78685c075dd7a6d074cea58ff847516c Mon Sep 17 00:00:00 2001 From: Dylan Noblesmith Date: Tue, 26 Aug 2014 02:03:40 +0000 Subject: Analysis: cleanup Address review comments. llvm-svn: 216432 --- llvm/lib/Analysis/DependenceAnalysis.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Analysis/DependenceAnalysis.cpp') diff --git a/llvm/lib/Analysis/DependenceAnalysis.cpp b/llvm/lib/Analysis/DependenceAnalysis.cpp index be4e487..228fd69 100644 --- a/llvm/lib/Analysis/DependenceAnalysis.cpp +++ b/llvm/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); } -- cgit v1.1