[PATCH] D128749: [libFuzzer] Extend the fuzz target intarface to allow -1 return value.

Matt Morehouse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 08:19:08 PDT 2022


morehouse accepted this revision.
morehouse added inline comments.
This revision is now accepted and ready to land.


================
Comment at: compiler-rt/lib/fuzzer/FuzzerLoop.cpp:615
     UnitStopTime = system_clock::now();
-    (void)Res;
-    assert(Res == 0);
+    (void)CBRes;
+    assert(CBRes == 0 || CBRes == -1);
----------------
Since `CBRes` is used in the return, I think we can remove this void cast.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128749/new/

https://reviews.llvm.org/D128749



More information about the llvm-commits mailing list