diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp index 70fd9405e5454f..e5d6d0a6e71649 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp @@ -1037,7 +1037,7 @@ ThreadLister::Result ThreadLister::ListThreads( Report("Can't open %s for reading.\n", task_path_.data()); return Error; } - auto acts_cleanup = at_scope_exit([&] { internal_close(descriptor); }); + auto cleanup = at_scope_exit([&] { internal_close(descriptor); }); threads->clear(); Result result = Ok;