diff --git a/search/Bfs.cc b/search/Bfs.cc index ebea9fdb..41cd536e 100644 --- a/search/Bfs.cc +++ b/search/Bfs.cc @@ -1,3 +1,4 @@ + // OpenSTA, Static Timing Analyzer // Copyright (c) 2025, Parallax Software, Inc. // @@ -203,7 +204,7 @@ BfsIterator::visitParallel(Level to_level, for (size_t k = 0; k < thread_count; k++) { // Last thread gets the left overs. size_t to = (k == thread_count - 1) ? vertex_count : from + chunk_size; - dispatch_queue_->dispatch( [=](int) { + dispatch_queue_->dispatch( [=, this](int) { for (size_t i = from; i < to; i++) { Vertex *vertex = level_vertices[i]; if (vertex) {