Analysis: cleanup

Address review comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216432 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dylan Noblesmith 2014-08-26 02:03:40 +00:00
parent 8cb2706af6
commit 7532912545

View File

@ -3674,10 +3674,9 @@ DependenceAnalysis::depends(Instruction *Src, Instruction *Dst,
return nullptr; return nullptr;
} }
std::unique_ptr<Dependence> Final; auto Final = make_unique<FullDependence>(Result);
Final.reset(new FullDependence(Result));
Result.DV = nullptr; Result.DV = nullptr;
return Final; return std::move(Final);
} }