forked from apple/swift
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Merge main 2022-09-01 #4848
Merged
Merged
Merge main 2022-09-01 #4848
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…elegation Fixes rdar://problem/98404682.
In the task-to-thread model, there are no threading mechanisms by which work could be offloaded onto another thread. As such, callback based asynchronous APIs which are not Swift async do not make sense. rdar://99047747
Previously we would cache the result of the first query, with any further query of `ResultBuilder::supports` ignoring the `checkAvailability` parameter. Separate out the availability checking such that we compute the information up front, and adjust the result depending on `checkAvailability`.
If `buildBlock` is also unavailable, or the builder itself is unavailable, continue to solve using `buildPartialBlock` to get better diagnostics. This behavior technically differs from what is specified in SE-0348, but only affects the invalid case where no builder methods are available to use. In particular, this improves diagnostics for RegexComponentBuilder when the deployment target is too low. Previously we would try to solve using `buildBlock` (as `buildPartialBlock` is unavailable), but RegexComponentBuilder only defines `buildBlock` for the empty body case, leading to unhelpful diagnostics that ultimately preferred not to use the result builder at all. rdar://97533700
…find the libc header path `getToolChain()` and `AddClangSystemIncludeArgs()` don't parse the arguments to set the sysroot, so set it directly instead. Also, remove a redundant check for a valid directory. Fixes apple#60224
With a properly prepared sysroot and toolchain file, these changes permit cross-compilation of Swift as well as LLVM, CMark, and Dispatch (picking, as usual, apple/swift-corelibs-libdispatch#556) from a Linux host generating OpenBSD binaries. The toolchain file must be specified as an environment variable to `build-script` and discussion on how to properly set up the sysroot and toolchain file will be handled later.
Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>
…hen computing override substitutions Fixes rdar://problem/98404650.
The loop at the end is meant to fill in substitutions from the local context with corresponding context archetypes, but we can end up here if the getSuperclassForDecl() class failed above. In this case, fill in the replacement types with ErrorType instead to avoid surfacing archetypes from the wrong environment.
Properties like `unownedExecutor` that are implicitly injected into a type should not be managed by a type wrapper.
Otherwise it cannot be used as a protocol requirement witness.
This is the same algorithm as pruned liveness but assumes that one is tracking liveness from an address and uses the same scheme as DI to track liveness as a bit vector.
[Print as C++] Don't crash on sugared types
[ClangImporter] Add the sysroot directly to the clang Driver used to find the libc header path
…ng (apple#60728) Refactor the logic so to have a single target to reference the compatibility libraries for the host, and use that when needed. The main driver for this change is supporting the cross-compilation of x86-64 on Apple Silicon. Supports rdar://90307965
[Freestanding] Disable checked continuations.
AST: Work around shortcoming in abstract conformance representation when computing override substitutions
…elf-super-init Sema: Fix existential opening for arguments to self.init/super.init delegation
Preliminary Linux-OpenBSD cross-compile support.
…var-internal [Sema] TypeWrappers: Set `$_storage` access level to `internal`
…gnostics [SwiftSyntax] Add a human readable name for diagnostics to all nodes
…f9b47f851d787746754 [pruned-liveness] Implement FieldSensitiveAddressPrunedLiveness.
Move OwnershipLowering to just before SimplifyCFG
[Interop][SwiftToCxx] Support enum creation from Cxx
[Sema] TypeWrappers: Don't try to manage compiler synthesized properties
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.