[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:
parent
4a807e8dd9
commit
bdb50b08a2
@ -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)); });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user