Skip to content

[test][IRGen] Fix check on local_extern test. #33816

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
Sep 5, 2020

Conversation

3405691582
Copy link
Member

Windows IR seems to include a dso_local annotation, which the check
didn't expect and caused a failure in #33813. Added a regex check to
ensure the test passes with or without the annotation.

@compnerd
Copy link
Member

compnerd commented Sep 5, 2020

@swift-ci please smoke test and merge

@compnerd
Copy link
Member

compnerd commented Sep 5, 2020

CC: @xedin

@compnerd
Copy link
Member

compnerd commented Sep 5, 2020

@swift-ci please test Windows platform

@compnerd
Copy link
Member

compnerd commented Sep 5, 2020

@3405691582 seems that its not enough?

@compnerd
Copy link
Member

compnerd commented Sep 5, 2020

@3405691582 I think we need to revert; this is breaking Foundation builds on Windows too as it no longer correctly is processing typedefs.

@compnerd
Copy link
Member

compnerd commented Sep 5, 2020

Nope, false alarm there.

@3405691582
Copy link
Member Author

I suspect this is another rigid match problem, but the CI is not showing me the full IR from that unit test so I can't confirm. Are you able to grab the emitted IR and show it to me, or let me know if there's a way to see it simply?

@compnerd
Copy link
Member

compnerd commented Sep 5, 2020

Not currently, there is something else that is preventing me from building, but the CI hosts seem okay (I think that the SDK version might be exposing another issue locally).

@3405691582
Copy link
Member Author

3405691582 commented Sep 5, 2020

As an experiment, I'm going to try removing the expectation on the function case, just to see if the other cases are as expected. Can you rerun the CI on Windows?

@compnerd
Copy link
Member

compnerd commented Sep 5, 2020

@swift-ci please test Windows platform

@3405691582
Copy link
Member Author

ugh, I cannot into git. You might have to do that again.

@compnerd
Copy link
Member

compnerd commented Sep 5, 2020

@swift-ci please test Windows platform

Windows IR seems to include a `dso_local` annotation, which the check
didn't expect and caused a failure in swiftlang#33813. Added a regex check to
ensure the test passes with or without the annotation.
@3405691582
Copy link
Member Author

That appears to have worked. Therefore, I think a valid approach for now is to create an amended version of the test for Windows and look into examining IR or figuring out a different test mechanism at a later date.

Do you agree, or should I try something else?

@compnerd
Copy link
Member

compnerd commented Sep 5, 2020

Sounds good to me, lets fix forward if we can.

@compnerd
Copy link
Member

compnerd commented Sep 5, 2020

@swift-ci please smoke test

@compnerd
Copy link
Member

compnerd commented Sep 5, 2020

@swift-ci please smoke test Linux platform

@compnerd compnerd merged commit cf9be38 into swiftlang:master Sep 5, 2020
3405691582 added a commit to 3405691582/swift that referenced this pull request Sep 5, 2020
In swiftlang#33816, we forked the local_extern test omitting the check for the
extern function, because it wasn't obvious what the match was. It might
actually just be missing the dso_local annotation again for the
function. Let's try that.
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