diff options
author | hexcoder- <heiko@hexco.de> | 2021-01-04 22:23:04 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-01-04 22:23:04 +0100 |
commit | 7f4b3a460a0b4f83e9039b57c033f6f43be08550 (patch) | |
tree | 103d54bd62478660e3639525f72ffd4b2d1a2d13 /instrumentation/afl-llvm-pass.so.cc | |
parent | 251e72f13654b5259f57075c7dffcc3a43372449 (diff) | |
download | afl++-7f4b3a460a0b4f83e9039b57c033f6f43be08550.tar.gz |
more code cleanup (instrumentation)
Diffstat (limited to 'instrumentation/afl-llvm-pass.so.cc')
-rw-r--r-- | instrumentation/afl-llvm-pass.so.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/instrumentation/afl-llvm-pass.so.cc b/instrumentation/afl-llvm-pass.so.cc index 8c8c987a..b755a19d 100644 --- a/instrumentation/afl-llvm-pass.so.cc +++ b/instrumentation/afl-llvm-pass.so.cc @@ -327,10 +327,10 @@ bool AFLCoverage::runOnModule(Module &M) { // does the function have calls? and is any of the calls larger than one // basic block? - for (auto &BB : F) { + for (auto &BB_2 : F) { if (has_calls) break; - for (auto &IN : BB) { + for (auto &IN : BB_2) { CallInst *callInst = nullptr; if ((callInst = dyn_cast<CallInst>(&IN))) { @@ -628,7 +628,7 @@ bool AFLCoverage::runOnModule(Module &M) { getenv("AFL_USE_MSAN") ? ", MSAN" : "", getenv("AFL_USE_CFISAN") ? ", CFISAN" : "", getenv("AFL_USE_UBSAN") ? ", UBSAN" : ""); - OKF("Instrumented %u locations (%s mode, ratio %u%%).", inst_blocks, + OKF("Instrumented %d locations (%s mode, ratio %u%%).", inst_blocks, modeline, inst_ratio); } |