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

[CIR][CIRGen][Builtin] Support __builtin_launder except in the case of -fstrict-vtable-pointers #1138

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

ghehg
Copy link
Collaborator

@ghehg ghehg commented Nov 18, 2024

Without using flag -fstrict-vtable-pointers, __builtin_launder is a noop. This PR implements that, and leave implementation for the case of -fstrict-vtable-pointers to future where there is a need.

This PR also adapted most of test cases from OG test case.
I didn't use test cases in the namespace pessimizing_cases, as they have no difference even when -fstrict-vtable-pointers is on.

Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

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

LGTM with minor nit

clang/include/clang/CIR/MissingFeatures.h Show resolved Hide resolved
@bcardosolopes
Copy link
Member

needs fixing conflict

@bcardosolopes bcardosolopes merged commit a18db3c into llvm:main Nov 26, 2024
6 checks passed
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