[compiler-rt] [scudo] Add missing header in combined_test (PR #66449)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 14 17:13:13 PDT 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer
            
<details>
<summary>Changes</summary>
It uses `T max( std::initializer_list<T> ilist )` which may not be included in the build path in some build systems.
--
Full diff: https://github.com/llvm/llvm-project/pull/66449.diff

1 Files Affected:

- (modified) compiler-rt/lib/scudo/standalone/tests/combined_test.cpp (+1) 


<pre>
diff --git a/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp b/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
index 6ca9a7c7002ce3c..a8fc5387d670ee1 100644
--- a/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
@@ -14,6 +14,7 @@
 #include &quot;combined.h&quot;
 #include &quot;mem_map.h&quot;
 
+#include &lt;algorithm&gt;
 #include &lt;condition_variable&gt;
 #include &lt;memory&gt;
 #include &lt;mutex&gt;
</pre>
</details>


https://github.com/llvm/llvm-project/pull/66449


More information about the llvm-commits mailing list