[compiler-rt] 4b82f61 - [libFuzzer] Use macro instead of __attribute__.

Matt Morehouse via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 12 14:38:03 PST 2021


Author: Matt Morehouse
Date: 2021-03-12T14:36:57-08:00
New Revision: 4b82f614745bfcd39e7cc546803f8eb69082a712

URL: https://github.com/llvm/llvm-project/commit/4b82f614745bfcd39e7cc546803f8eb69082a712
DIFF: https://github.com/llvm/llvm-project/commit/4b82f614745bfcd39e7cc546803f8eb69082a712.diff

LOG: [libFuzzer] Use macro instead of __attribute__.

This should fix the Windows buildbot errors.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
index f5028261d81b..149742b4c2fe 100644
--- a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
@@ -580,8 +580,8 @@ static bool LooseMemeq(const uint8_t *A, const uint8_t *B, size_t Size) {
 
 // This method is not inlined because it would cause a test to fail where it
 // is part of the stack unwinding. See D97975 for details.
-void __attribute__((noinline))
-Fuzzer::ExecuteCallback(const uint8_t *Data, size_t Size) {
+ATTRIBUTE_NOINLINE void Fuzzer::ExecuteCallback(const uint8_t *Data,
+                                                size_t Size) {
   TPC.RecordInitialStack();
   TotalNumberOfRuns++;
   assert(InFuzzingThread());


        


More information about the llvm-commits mailing list