Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Nov 30, 2023
1 parent b52fd8d commit 8a0dec1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/util/dependency.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class dependency_manager {

value_manager & m_vmanager;
allocator & m_allocator;
ptr_vector<dependency> m_todo;
mutable ptr_vector<dependency> m_todo;

void inc_ref(value const & v) {
if (C::ref_count)
Expand Down Expand Up @@ -138,7 +138,7 @@ class dependency_manager {
}
}

void unmark_todo() {
void unmark_todo() const {
for (auto* d : m_todo)
d->unmark();
m_todo.reset();
Expand Down Expand Up @@ -224,7 +224,7 @@ class dependency_manager {



void linearize(dependency * d, vector<value, false> & vs) {
void linearize(dependency * d, vector<value, false> & vs) const {
if (!d)
return;
SASSERT(m_todo.empty());
Expand All @@ -234,7 +234,7 @@ class dependency_manager {
m_todo.reset();
}

void linearize(ptr_vector<dependency>& deps, vector<value, false> & vs) {
void linearize(ptr_vector<dependency>& deps, vector<value, false> & vs) const {
if (deps.empty())
return;
SASSERT(m_todo.empty());
Expand Down Expand Up @@ -329,7 +329,7 @@ class scoped_dependency_manager {
return m_dep_manager.contains(d, v);
}

void linearize(dependency * d, vector<value, false> & vs) {
void linearize(dependency * d, vector<value, false> & vs) const {
return m_dep_manager.linearize(d, vs);
}

Expand All @@ -338,7 +338,7 @@ class scoped_dependency_manager {
return vs;
}

void linearize(ptr_vector<dependency>& d, vector<value, false> & vs) {
void linearize(ptr_vector<dependency>& d, vector<value, false> & vs) const {
return m_dep_manager.linearize(d, vs);
}

Expand Down Expand Up @@ -440,4 +440,4 @@ class stacked_dependency_manager {
void linearize(ptr_vector<dependency>& d, vector<value, false>& vs) {
return m_dep_manager.linearize(d, vs);
}
};
};

0 comments on commit 8a0dec1

Please sign in to comment.