Skip to content

Conversation

@devnexen
Copy link
Contributor

No description provided.

@devnexen
Copy link
Contributor Author

@vanhauser-thc gonna love it :) I can kind of see why they removed the get*PtrTy shortcuts, but the starts_with/startswith situation is harder to comprehend .. we ll see.

@vanhauser-thc
Copy link
Member

oh my what a shit show ... so many modules that need to be changed ...

@devnexen
Copy link
Contributor Author

I think I m done, with the last version from apt.llvm the build and tests pass locally.

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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this not need an ifdef? Or does this work with llvm 11/13 too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at all, what the get*PtrTy did is precisely this, they were just shortcuts. llvm 18 feels like "api cleanup" (getFixedSize which calls geFixedValue is the same vein).

@vanhauser-thc
Copy link
Member

Thank you!

@vanhauser-thc vanhauser-thc merged commit 3c0cfd8 into AFLplusplus:dev Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants