From 5af35a9ee1a46f497568c11874f917a1b0b79142 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sun, 26 Oct 2014 22:12:02 +0000 Subject: [PATCH] [PBQP] Tidying up as per Dave Blaikie's suggesions for r220642. llvm-svn: 220655 --- llvm/include/llvm/CodeGen/RegAllocPBQP.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/CodeGen/RegAllocPBQP.h b/llvm/include/llvm/CodeGen/RegAllocPBQP.h index 4d7e5d5..b32499c 100644 --- a/llvm/include/llvm/CodeGen/RegAllocPBQP.h +++ b/llvm/include/llvm/CodeGen/RegAllocPBQP.h @@ -109,9 +109,9 @@ public: RS = Other.RS; NumOpts = Other.NumOpts; DeniedOpts = Other.DeniedOpts; - OptUnsafeEdges = std::unique_ptr(new unsigned[NumOpts]); - std::copy(&Other.OptUnsafeEdges[0], &Other.OptUnsafeEdges[NumOpts], - &OptUnsafeEdges[0]); + OptUnsafeEdges.reset(new unsigned[NumOpts]); + std::copy(Other.OptUnsafeEdges.get(), Other.OptUnsafeEdges.get() + NumOpts, + OptUnsafeEdges.get()); VReg = Other.VReg; OptionRegs = Other.OptionRegs; return *this; -- 2.7.4