[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:06 PDT 2024
https://github.com/Prabhuk created https://github.com/llvm/llvm-project/pull/113951
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.
>From 5ce4cde67585055e62c2a9d1cbc6d0d1cdaec91f Mon Sep 17 00:00:00 2001
From: prabhukr <prabhukr at google.com>
Date: Mon, 28 Oct 2024 12:23:14 -0700
Subject: [PATCH] [NFC][compiler-rt] Add missing header include
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.
---
compiler-rt/include/fuzzer/FuzzedDataProvider.h | 1 +
1 file changed, 1 insertion(+)
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>
More information about the llvm-commits
mailing list