Skip to content

Commit 6ee6284

Browse files
Address a comment.
1 parent 5ba1a1c commit 6ee6284

File tree

1 file changed

+2
-2
lines changed
  • llvm/include/llvm/CodeGen/PBQP

1 file changed

+2
-2
lines changed

llvm/include/llvm/CodeGen/PBQP/Math.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ class Vector {
3333
/// Construct a PBQP vector with initializer.
3434
Vector(unsigned Length, PBQPNum InitVal)
3535
: Length(Length), Data(std::make_unique<PBQPNum []>(Length)) {
36-
std::fill(Data.get(), Data.get() + Length, InitVal);
36+
std::fill(begin(), end(), InitVal);
3737
}
3838

3939
/// Copy construct a PBQP vector.
4040
Vector(const Vector &V)
4141
: Length(V.Length), Data(std::make_unique<PBQPNum []>(Length)) {
42-
std::copy(V.Data.get(), V.Data.get() + Length, Data.get());
42+
llvm::copy(V, begin());
4343
}
4444

4545
/// Move construct a PBQP vector.

0 commit comments

Comments
 (0)