[compiler-rt] 3ba498d - [fuzzer][test] Add #include <cstdint> for gcc-13

Weining Lu via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 9 21:44:59 PST 2022


Author: Youling Tang
Date: 2022-11-10T13:44:11+08:00
New Revision: 3ba498d145f7ce07b5c25633c2179e64943dae13

URL: https://github.com/llvm/llvm-project/commit/3ba498d145f7ce07b5c25633c2179e64943dae13
DIFF: https://github.com/llvm/llvm-project/commit/3ba498d145f7ce07b5c25633c2179e64943dae13.diff

LOG: [fuzzer][test] Add #include <cstdint> for gcc-13

See https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes.

Reviewed By: SixWeining

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

Added: 
    

Modified: 
    compiler-rt/test/fuzzer/CounterTest.cpp
    compiler-rt/test/fuzzer/FlagsTest.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/fuzzer/CounterTest.cpp b/compiler-rt/test/fuzzer/CounterTest.cpp
index 84112f9e85b47..e04da67159023 100644
--- a/compiler-rt/test/fuzzer/CounterTest.cpp
+++ b/compiler-rt/test/fuzzer/CounterTest.cpp
@@ -4,6 +4,7 @@
 
 // Test for a fuzzer: must find the case where a particular basic block is
 // executed many times.
+#include <cstdint>
 #include <iostream>
 
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {

diff  --git a/compiler-rt/test/fuzzer/FlagsTest.cpp b/compiler-rt/test/fuzzer/FlagsTest.cpp
index 8acd2f99b35cb..9c3e91cb1f265 100644
--- a/compiler-rt/test/fuzzer/FlagsTest.cpp
+++ b/compiler-rt/test/fuzzer/FlagsTest.cpp
@@ -3,6 +3,7 @@
 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
 // Parse some flags
+#include <cstdint>
 #include <string>
 #include <vector>
 


        


More information about the llvm-commits mailing list