[llvm] Fix comment references deprecated make_scope_exit (#175820)

After #173131 and #174030, make_scope_exit is no longer used in
ThreadPool. Fix comment that references old APIs and references the new
API instead.
This commit is contained in:
Steven Wu 2026-01-13 12:26:50 -08:00 committed by GitHub
parent 4a807e8dd9
commit bdb50b08a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -187,7 +187,7 @@ void StdThreadPool::processTasksWithJobserver() {
report_fatal_error("Timed out waiting for jobserver token.");
}
// `make_scope_exit` guarantees the job slot is released, even if the
// `llvm::scope_exit` guarantees the job slot is released, even if the
// task throws or we exit early. This prevents deadlocking the build.
llvm::scope_exit SlotReleaser(
[&] { TheJobserver->release(std::move(Slot)); });