From 7532912545bf2ed99054b07b22aeb7108b3adcd5 Mon Sep 17 00:00:00 2001 From: Dylan Noblesmith Date: Tue, 26 Aug 2014 02:03:40 +0000 Subject: [PATCH] Analysis: cleanup Address review comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216432 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DependenceAnalysis.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); } -- 2.34.1