[scudo] Add missing <algorithm> include
authorGulfem Savrun Yeniceri <gulfem@google.com>
Sat, 19 Feb 2022 00:59:23 +0000 (00:59 +0000)
committerGulfem Savrun Yeniceri <gulfem@google.com>
Sat, 19 Feb 2022 01:14:14 +0000 (01:14 +0000)
After https://reviews.llvm.org/D119667, <algorithm> is no longer
transitively included from various headers. This patch adds the
<algorithm> include into scudo.

Differential Revision: https://reviews.llvm.org/D120171

compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp

index 7236792..a7df3d9 100644 (file)
@@ -12,6 +12,7 @@
 #include "allocator_config.h"
 #include "secondary.h"
 
+#include <algorithm>
 #include <condition_variable>
 #include <memory>
 #include <mutex>