projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25a0ad9
)
[PBQP] Tidying up as per Dave Blaikie's suggesions for r220642.
author
Lang Hames
<lhames@gmail.com>
Sun, 26 Oct 2014 22:12:02 +0000
(22:12 +0000)
committer
Lang Hames
<lhames@gmail.com>
Sun, 26 Oct 2014 22:12:02 +0000
(22:12 +0000)
llvm-svn: 220655
llvm/include/llvm/CodeGen/RegAllocPBQP.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/CodeGen/RegAllocPBQP.h
b/llvm/include/llvm/CodeGen/RegAllocPBQP.h
index
4d7e5d5
..
b32499c
100644
(file)
--- 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<unsigned[]>
(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;