We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ba1a1c commit 6ee6284Copy full SHA for 6ee6284
llvm/include/llvm/CodeGen/PBQP/Math.h
@@ -33,13 +33,13 @@ class Vector {
33
/// Construct a PBQP vector with initializer.
34
Vector(unsigned Length, PBQPNum InitVal)
35
: Length(Length), Data(std::make_unique<PBQPNum []>(Length)) {
36
- std::fill(Data.get(), Data.get() + Length, InitVal);
+ std::fill(begin(), end(), InitVal);
37
}
38
39
/// Copy construct a PBQP vector.
40
Vector(const Vector &V)
41
: Length(V.Length), Data(std::make_unique<PBQPNum []>(Length)) {
42
- std::copy(V.Data.get(), V.Data.get() + Length, Data.get());
+ llvm::copy(V, begin());
43
44
45
/// Move construct a PBQP vector.
0 commit comments