From 4b4244bcf6cad5fdc897edef6ea810647a54ca9f Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Sun, 17 Oct 2021 21:47:08 +0200 Subject: fix --- instrumentation/cmplog-routines-pass.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'instrumentation/cmplog-routines-pass.cc') 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 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); -- cgit 1.4.1