[compiler-rt] [NFC][compiler-rt] Add missing header include (PR #113951)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 12:25:39 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Prabhuk (Prabhuk)
<details>
<summary>Changes</summary>
Include `cstdlib` which was originally included transitively but the
changes to `vector` in libcpp breaks new builds due to missing cstdlib
header for `abort()` function call.
---
Full diff: https://github.com/llvm/llvm-project/pull/113951.diff
1 Files Affected:
- (modified) compiler-rt/include/fuzzer/FuzzedDataProvider.h (+1)
``````````diff
diff --git a/compiler-rt/include/fuzzer/FuzzedDataProvider.h b/compiler-rt/include/fuzzer/FuzzedDataProvider.h
index 5903ed837917ca..e57b95b6304a9a 100644
--- a/compiler-rt/include/fuzzer/FuzzedDataProvider.h
+++ b/compiler-rt/include/fuzzer/FuzzedDataProvider.h
@@ -18,6 +18,7 @@
#include <climits>
#include <cstddef>
#include <cstdint>
+#include <cstdlib>
#include <cstring>
#include <initializer_list>
#include <limits>
``````````
</details>
https://github.com/llvm/llvm-project/pull/113951
More information about the llvm-commits
mailing list