diff --git a/compiler-rt/lib/memprof/memprof_allocator.cpp b/compiler-rt/lib/memprof/memprof_allocator.cpp index 6f8c61320aac1e..4bd37460bebfcb 100644 --- a/compiler-rt/lib/memprof/memprof_allocator.cpp +++ b/compiler-rt/lib/memprof/memprof_allocator.cpp @@ -28,10 +28,8 @@ #include "sanitizer_common/sanitizer_flags.h" #include "sanitizer_common/sanitizer_interface_internal.h" #include "sanitizer_common/sanitizer_internal_defs.h" -#include "sanitizer_common/sanitizer_list.h" #include "sanitizer_common/sanitizer_procmaps.h" #include "sanitizer_common/sanitizer_stackdepot.h" -#include "sanitizer_common/sanitizer_vector.h" #include #include @@ -279,7 +277,7 @@ struct Allocator { static void PrintCallback(const uptr Key, LockedMemInfoBlock *const &Value, void *Arg) { - SpinMutexLock(&Value->mutex); + SpinMutexLock l(&Value->mutex); Print(Value->mib, Key, bool(Arg)); }