[PATCH] D44798: [libFuzzer] Use OptForFuzzing attribute with -fsanitize=fuzzer.

Matt Morehouse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 22 12:14:03 PDT 2018


morehouse added a comment.

16-bit variables are switched to 32-bit variables in SwapCmpTest.cpp and SimpleCmpTest.cpp.  This is because those tests rely on libFuzzer's TraceCMP heuristic to pass, but 16-bit compares are not considered for the heuristic.

The only reason the test used to pass was because under `-O0` 16-bit compares are promoted to 32-bit compares.


https://reviews.llvm.org/D44798





More information about the llvm-commits mailing list