Skip to content

Change macro expansion mangling to avoid request cycles #74201

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

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Jun 7, 2024

Fixes rdar://127078338.

lib/AST/Expr.cpp Outdated
Comment on lines 1939 to 1940
dump(llvm::errs());
abort();

This comment was marked as outdated.

@slavapestov slavapestov force-pushed the macro-expansion-mangling branch from 47ff956 to f11b956 Compare June 11, 2024 16:57
@slavapestov slavapestov marked this pull request as ready for review June 11, 2024 17:00
@slavapestov slavapestov force-pushed the macro-expansion-mangling branch from f11b956 to f26b625 Compare June 11, 2024 17:08
@slavapestov slavapestov requested a review from ktoso as a code owner June 11, 2024 17:08
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

#anonymousTypes(public: false) { "goodbye" }

// FIXME: This test
Copy link
Member

Choose a reason for hiding this comment

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

Drive-by comment: Is this a leftover comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, the test is broken or there's a bug; I noticed that changing 'public' to true has no effect on the SIL output, which I think is wrong.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I see what you by the FIXME now with your comment. Do you think it would be valuable to include more information about what in the test needs fixing (essentially putting your GitHub comment in the source code)? I’m just thinking that somebody reading this FIXME in a year or two might have a hard time understanding what it was referring to.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@slavapestov slavapestov force-pushed the macro-expansion-mangling branch from f26b625 to 9793f77 Compare June 13, 2024 21:45
slavapestov added a commit to swiftlang/llvm-project that referenced this pull request Jun 13, 2024
slavapestov added a commit to swiftlang/llvm-project that referenced this pull request Jun 13, 2024
bnbarham added a commit to swiftlang/llvm-project that referenced this pull request Jun 14, 2024
slavapestov added a commit to slavapestov/llvm-project that referenced this pull request Jun 14, 2024
@slavapestov
Copy link
Contributor Author

swiftlang/llvm-project#8898
@swift-ci Please smoke test

@slavapestov slavapestov enabled auto-merge June 14, 2024 02:25
@slavapestov slavapestov merged commit b14563f into swiftlang:main Jun 14, 2024
3 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.

3 participants