Skip to content

Commit 8e6cbb4

Browse files
committed
Matrix: remove useless constexpr annotations
1 parent a3663f2 commit 8e6cbb4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

llvm/include/llvm/ADT/Matrix.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,37 +99,37 @@ struct [[nodiscard]] MatrixRowView : public MutableArrayRef<T> {
9999
using iterator = typename MutableArrayRef<T>::iterator;
100100
using const_iterator = typename MutableArrayRef<T>::const_iterator;
101101

102-
constexpr MatrixRowView() = delete;
103-
constexpr MatrixRowView(pointer Data, size_t Length)
102+
MatrixRowView() = delete;
103+
MatrixRowView(pointer Data, size_t Length)
104104
: MutableArrayRef<T>(Data, Length) {}
105-
constexpr MatrixRowView(iterator Begin, iterator End)
105+
MatrixRowView(iterator Begin, iterator End)
106106
: MutableArrayRef<T>(Begin, End) {}
107-
constexpr MatrixRowView(const_iterator Begin, const_iterator End)
107+
MatrixRowView(const_iterator Begin, const_iterator End)
108108
: MutableArrayRef<T>(Begin, End) {}
109-
constexpr MatrixRowView(MutableArrayRef<T> Other)
109+
MatrixRowView(MutableArrayRef<T> Other)
110110
: MutableArrayRef<T>(Other.data(), Other.size()) {}
111111
MatrixRowView(const SmallVectorImpl<T> &Vec) : MutableArrayRef<T>(Vec) {}
112112

113113
using MutableArrayRef<T>::size;
114114
using MutableArrayRef<T>::data;
115115

116-
constexpr T &back() const { return MutableArrayRef<T>::back(); }
117-
constexpr T &front() const { return MutableArrayRef<T>::front(); }
118-
constexpr MatrixRowView<T> drop_back(size_t N = 1) const { // NOLINT
116+
T &back() const { return MutableArrayRef<T>::back(); }
117+
T &front() const { return MutableArrayRef<T>::front(); }
118+
MatrixRowView<T> drop_back(size_t N = 1) const { // NOLINT
119119
return MutableArrayRef<T>::drop_back(N);
120120
}
121-
constexpr MatrixRowView<T> drop_front(size_t N = 1) const { // NOLINT
121+
MatrixRowView<T> drop_front(size_t N = 1) const { // NOLINT
122122
return MutableArrayRef<T>::drop_front(N);
123123
}
124124
// This slice is different from the MutableArrayRef slice, and specifies a
125125
// Begin and End index, instead of a Begin and Length.
126-
constexpr MatrixRowView<T> slice(size_t Begin, size_t End) {
126+
MatrixRowView<T> slice(size_t Begin, size_t End) {
127127
return MutableArrayRef<T>::slice(Begin, End - Begin);
128128
}
129-
constexpr void pop_back(size_t N = 1) { // NOLINT
129+
void pop_back(size_t N = 1) { // NOLINT
130130
this->Length -= N;
131131
}
132-
constexpr void pop_front(size_t N = 1) { // NOLINT
132+
void pop_front(size_t N = 1) { // NOLINT
133133
this->Data += N;
134134
this->Length -= N;
135135
}

0 commit comments

Comments
 (0)