diff options
author | hexcoder- <heiko@hexco.de> | 2021-06-11 21:34:56 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-06-11 21:34:56 +0200 |
commit | 35c23be9738882cefce854530fcb954c290e8f17 (patch) | |
tree | 9e39d1d95c56795b97cb57965e1f88e3f3fdec11 | |
parent | 2516324d3edb8d7936de7f4279405885cb87351a (diff) | |
download | afl++-35c23be9738882cefce854530fcb954c290e8f17.tar.gz |
adapt for LLVM 3.8.0
-rw-r--r-- | instrumentation/split-compares-pass.so.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/instrumentation/split-compares-pass.so.cc b/instrumentation/split-compares-pass.so.cc index 10f86a66..68f6c329 100644 --- a/instrumentation/split-compares-pass.so.cc +++ b/instrumentation/split-compares-pass.so.cc @@ -432,7 +432,7 @@ bool SplitComparesTransform::simplifySignedCompare(CmpInst *IcmpInst, Module &M, s_op1 = IRB.CreateLShr(op1, ConstantInt::get(IntType, bitw - 1)); t_op1 = IRB.CreateTruncOrBitCast(s_op1, Int1Ty); /* compare of the sign bits */ - icmp_sign_bit = IRB.CreateCmp(CmpInst::ICMP_EQ, t_op0, t_op1); + icmp_sign_bit = IRB.CreateICmp(CmpInst::ICMP_EQ, t_op0, t_op1); /* create a new basic block which is executed if the signedness bit is * different */ @@ -1397,7 +1397,11 @@ bool SplitComparesTransform::runOnModule(Module &M) { } bool brokenDebug = false; - if (verifyModule(M, &errs(), &brokenDebug)) { + if (verifyModule( M, &errs() +#if LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 9) + ,&brokenDebug // 9th May 2016 +#endif + )) { reportError( "Module Verifier failed! Consider reporting a bug with the AFL++ " |