Details
Diff Detail
Event Timeline
LGTM with a nit
| lib/Fuzzer/test/SimpleTest.cpp | ||
|---|---|---|
| 11 | Alternatively, you could #include "gtest/gtest.h" and use EXPECT_NE: EXPECT_NE(NULL, Data) << "Pointer to the data must not be NULL" EXPECT_NE will work even if LLVM is built without asserts, while assert will just pass. | |
| lib/Fuzzer/FuzzerLoop.cpp | ||
|---|---|---|
| 242 | There are too many paths that lead here. Plus, didn't we agree that its ok to call it with empty unit? | |
| lib/Fuzzer/FuzzerLoop.cpp | ||
|---|---|---|
| 242 | Emm. I am probably not 100% convinced we want to call this with empty units. But ok, let's assume we can. | |
Looks weird.
I would prefer to have assert(!U.empty()) and enforce it in callers.