diff options
author | vanhauser-thc <vh@thc.org> | 2021-10-17 21:47:08 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-10-17 21:47:08 +0200 |
commit | 4b4244bcf6cad5fdc897edef6ea810647a54ca9f (patch) | |
tree | 13a6c07f41e6ee31a35bf38a97f7dc561f39e7db /instrumentation/cmplog-routines-pass.cc | |
parent | fb481231b7493b7d22035598bb6d77167725f8cd (diff) | |
download | afl++-4b4244bcf6cad5fdc897edef6ea810647a54ca9f.tar.gz |
fix
Diffstat (limited to 'instrumentation/cmplog-routines-pass.cc')
-rw-r--r-- | instrumentation/cmplog-routines-pass.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/cmplog-routines-pass.cc b/instrumentation/cmplog-routines-pass.cc index 3d6467ba..50ced5d8 100644 --- a/instrumentation/cmplog-routines-pass.cc +++ b/instrumentation/cmplog-routines-pass.cc @@ -469,7 +469,7 @@ bool CmpLogRoutines::hookRtns(Module &M) { std::vector<Value *> args; Value * v1Pcasted = IRB.CreatePointerCast(v1P, i8PtrTy); Value * v2Pcasted = IRB.CreatePointerCast(v2P, i8PtrTy); - Value * v3Pcasted = IRB.CreateZExtOrBitCast(v3P, Int32Ty); + Value * v3Pcasted = IRB.CreateTruncOrBitCast(v3P, Int32Ty); args.push_back(v1Pcasted); args.push_back(v2Pcasted); args.push_back(v3Pcasted); |