about summary refs log tree commit diff
path: root/instrumentation/cmplog-routines-pass.cc
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-12-23 22:07:32 +0100
committerGitHub <noreply@github.com>2023-12-23 22:07:32 +0100
commit3c0cfd82bccc8e44f01f76628209aecfc8f2aacf (patch)
treea0d53cfec4be6cdffbd985871171bee6cd6f29b2 /instrumentation/cmplog-routines-pass.cc
parent27d05f3c216e18163236efa42b630a5b3784d2e9 (diff)
parentdf0638ab87a37f0a3604f5a95a4164153a3bd582 (diff)
downloadafl++-3c0cfd82bccc8e44f01f76628209aecfc8f2aacf.tar.gz
Merge pull request #1940 from devnexen/llvm_18_build_fix
llvm 18 build fixes.
Diffstat (limited to 'instrumentation/cmplog-routines-pass.cc')
-rw-r--r--instrumentation/cmplog-routines-pass.cc4
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 =