forked from OSchip/llvm-project
[ConstraintSystem] Mark function as const (NFC).
This commit is contained in:
parent
d44de46254
commit
1ca02bddb4
|
@ -73,7 +73,7 @@ public:
|
|||
return R;
|
||||
}
|
||||
|
||||
bool isConditionImplied(SmallVector<int64_t, 8> R);
|
||||
bool isConditionImplied(SmallVector<int64_t, 8> R) const;
|
||||
|
||||
void popLastConstraint() { Constraints.pop_back(); }
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ bool ConstraintSystem::mayHaveSolution() {
|
|||
return HasSolution;
|
||||
}
|
||||
|
||||
bool ConstraintSystem::isConditionImplied(SmallVector<int64_t, 8> R) {
|
||||
bool ConstraintSystem::isConditionImplied(SmallVector<int64_t, 8> R) const {
|
||||
// If all variable coefficients are 0, we have 'C >= 0'. If the constant is >=
|
||||
// 0, R is always true, regardless of the system.
|
||||
if (all_of(makeArrayRef(R).drop_front(1), [](int64_t C) { return C == 0; }))
|
||||
|
|
Loading…
Reference in New Issue