about summary refs log tree commit diff
path: root/llvm_mode/afl-llvm-lto-instrim.so.cc
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-08-01 19:43:29 +0200
committervan Hauser <vh@thc.org>2020-08-01 19:43:29 +0200
commitb708cf7d45edd0297ff47b89dd95dcf5e3664a40 (patch)
tree8440209ea02425a34d9938430eafe78a7d7fb9d8 /llvm_mode/afl-llvm-lto-instrim.so.cc
parenta267ff1ab58ed29a39133309904e1c6eb7c1ea3f (diff)
downloadafl++-b708cf7d45edd0297ff47b89dd95dcf5e3664a40.tar.gz
fix lto single block and no zero
Diffstat (limited to 'llvm_mode/afl-llvm-lto-instrim.so.cc')
-rw-r--r--llvm_mode/afl-llvm-lto-instrim.so.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_mode/afl-llvm-lto-instrim.so.cc b/llvm_mode/afl-llvm-lto-instrim.so.cc
index 880963ac..dba98777 100644
--- a/llvm_mode/afl-llvm-lto-instrim.so.cc
+++ b/llvm_mode/afl-llvm-lto-instrim.so.cc
@@ -701,7 +701,7 @@ struct InsTrimLTO : public ModulePass {
 
         Value *Incr = IRB.CreateAdd(Counter, One);
 
-        if (skip_nozero) {
+        if (skip_nozero == NULL) {
 
           auto cf = IRB.CreateICmpEQ(Incr, Zero);
           auto carry = IRB.CreateZExt(cf, Int8Ty);