diff options
author | David Carlier <devnexen@gmail.com> | 2023-12-22 13:34:35 +0000 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2023-12-23 19:32:19 +0000 |
commit | df0638ab87a37f0a3604f5a95a4164153a3bd582 (patch) | |
tree | a0d53cfec4be6cdffbd985871171bee6cd6f29b2 /instrumentation/cmplog-routines-pass.cc | |
parent | 27d05f3c216e18163236efa42b630a5b3784d2e9 (diff) | |
download | afl++-df0638ab87a37f0a3604f5a95a4164153a3bd582.tar.gz |
llvm 18 build fixes.
Diffstat (limited to 'instrumentation/cmplog-routines-pass.cc')
-rw-r--r-- | instrumentation/cmplog-routines-pass.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/instrumentation/cmplog-routines-pass.cc b/instrumentation/cmplog-routines-pass.cc index 54e9ddf3..9272be62 100644 --- a/instrumentation/cmplog-routines-pass.cc +++ b/instrumentation/cmplog-routines-pass.cc @@ -385,7 +385,7 @@ bool CmpLogRoutines::hookRtns(Module &M) { isStrcmp &= FT->getNumParams() == 2 && FT->getReturnType()->isIntegerTy(32) && FT->getParamType(0) == FT->getParamType(1) && - FT->getParamType(0) == IntegerType::getInt8PtrTy(M.getContext()); + FT->getParamType(0) == IntegerType::getInt8Ty(M.getContext())->getPointerTo(0); bool isStrncmp = (!FuncName.compare("strncmp") || !FuncName.compare("xmlStrncmp") || @@ -402,7 +402,7 @@ bool CmpLogRoutines::hookRtns(Module &M) { FT->getReturnType()->isIntegerTy(32) && FT->getParamType(0) == FT->getParamType(1) && FT->getParamType(0) == - IntegerType::getInt8PtrTy(M.getContext()) && + IntegerType::getInt8Ty(M.getContext())->getPointerTo(0) && FT->getParamType(2)->isIntegerTy(); bool isGccStdStringStdString = |