Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate icmp eq and icmp ne to PtrEqual and PtrNotEqual respectively #2511

Merged
merged 3 commits into from
Apr 22, 2024

Conversation

vmaksimo
Copy link
Contributor

This fixes #1391

@vmaksimo vmaksimo marked this pull request as ready for review April 18, 2024 16:44
@vmaksimo vmaksimo requested a review from MrSidims April 19, 2024 10:30
Cmp->getOperand(1)->getType()->isPointerTy()) {
Op OC = P == ICmpInst::ICMP_EQ ? OpPtrEqual : OpPtrNotEqual;
return BM->addBinaryInst(OC, transType(Cmp->getType()), TOp0, TOp1, BB);
} else {
Copy link
Contributor

@MrSidims MrSidims Apr 19, 2024

Choose a reason for hiding this comment

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

please apply clang-tidy

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.

OpPtrEqual, OpPtrNotEqual and OpPtrDiff are not implemented in the translator
3 participants