Skip to content

IRGen: Fix Clang type conversion to map Swift.Bool to _Bool instead o… #2718

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

Closed
wants to merge 1 commit into from

Conversation

slavapestov
Copy link
Contributor

rdar://problem/26444628

Please don't merge -- still needs tests (and might be the wrong approach)

…f signed char

CoreFoundation on Linux expects this. I'm not sure what changed
recently to expose this problem -- and I *am* sure that this
workaround is not the right way of doing it.

However, the public CI on Linux has been broken for a week now
because of this, so let's get it passing again so we can investigate
what changed in Clang/LLVM here.

Fixes <rdar://problem/26444628>.
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple
Copy link
Contributor

You can put me down as the reviewer if the preview branch is having the same issue.

@jrose-apple
Copy link
Contributor

I assume useSignedCharForObjCBool is true because all the existing Objective-C runtimes on Linux use signed char…and if we were trying to interoperate with them, we'd need it. On the other hand, I wouldn't expect anything on the C side to be treating Bool as ObjCBool, and that could indicate a bridging or importer problem.

@jrose-apple
Copy link
Contributor

But we can worry about that later.

@slavapestov
Copy link
Contributor Author

Does the fix look OK in general, @jrose-apple?

@slavapestov
Copy link
Contributor Author

Oops, I forgot to reload so I didn't see your replies earlier. Please disregard.

@slavapestov
Copy link
Contributor Author

Hi @tkremenek, do we want this to go into swift-3.0-preview-1-branch also?

@slavapestov slavapestov deleted the fix-bool-on-linux branch May 27, 2016 06:01
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