[compiler-rt] 750369e - [libFuzzer] Fix compilation error by including missing platform macro definitions.

Matt Morehouse via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 14 15:27:11 PDT 2020


Author: Dokyung Song
Date: 2020-07-14T22:26:50Z
New Revision: 750369e2e8cb318d29693eaae1e2dc38aa535917

URL: https://github.com/llvm/llvm-project/commit/750369e2e8cb318d29693eaae1e2dc38aa535917
DIFF: https://github.com/llvm/llvm-project/commit/750369e2e8cb318d29693eaae1e2dc38aa535917.diff

LOG: [libFuzzer] Fix compilation error by including missing platform macro definitions.

Summary: This patch fixes sanitizer-windows build errors.

Reviewers: morehouse, hctim

Reviewed By: morehouse, hctim

Subscribers: #sanitizers

Tags: #sanitizers

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

Added: 
    

Modified: 
    compiler-rt/lib/fuzzer/FuzzerLoop.cpp
    compiler-rt/lib/fuzzer/FuzzerSHA1.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
index 7c3288fc5750..02db6d27b0a3 100644
--- a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
@@ -12,6 +12,7 @@
 #include "FuzzerIO.h"
 #include "FuzzerInternal.h"
 #include "FuzzerMutate.h"
+#include "FuzzerPlatform.h"
 #include "FuzzerRandom.h"
 #include "FuzzerTracePC.h"
 #include <algorithm>

diff  --git a/compiler-rt/lib/fuzzer/FuzzerSHA1.cpp b/compiler-rt/lib/fuzzer/FuzzerSHA1.cpp
index 43e5e78cd787..2005dc700305 100644
--- a/compiler-rt/lib/fuzzer/FuzzerSHA1.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerSHA1.cpp
@@ -17,6 +17,7 @@
 
 #include "FuzzerSHA1.h"
 #include "FuzzerDefs.h"
+#include "FuzzerPlatform.h"
 
 /* This code is public-domain - it is based on libcrypt
  * placed in the public domain by Wei Dai and other contributors.


        


More information about the llvm-commits mailing list