forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 30
[pull] swiftwasm from main #4700
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
Conversation
This file contains hidden or 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
…tead of `BridgedDiagnosticEngine` This also removes `BridgedOptionalDiagnosticEngine`. rdar://83361087
This cannot be represented in the ABI because we expect that the opaque return type can be instantiated from the generic arguments of its declaring context. Reconstructing type metadata for the DynamicSelfType would require opaque return type instantiation to also take the self *value*. Fixes rdar://72407668 / swiftlang#56367
…tion Move the check where we insert UnderlyingToOpaqueExpr earlier in coerceToType(). Otherwise, returning a metatype or function type would attempt to perform a conversion instead of building a UnderlyingToOpaqueExpr. Fixes part of swiftlang#60038.
…_stdlib_has_malloc_size` runtime calls Those runtime calls are used in the Array implementation and prevented access optimizations. rdar://87853551
…dlib_has_malloc_size` runtime calls Those runtime calls are used in the Array implementation and prevented optimizations like redundant load elimination.
non-throwing functions. Activating swift-functions-errors tests Inserting macros and additional parameters in C and C++ functions following the pattern to lowering to LLVM IR.
…in-analysis SIL optimizer: ignore `_swift_stdlib_malloc_size` and `_swift_stdlib_has_malloc_size` runtime calls in analysis
[SILPrinter] print target branch debug names in SIL dumps
…/SwiftToCxxErrorHandling [Interop] [SwiftToCxx] Using the hardcode noexcept flags on the compiler only to non throwing functions
Add leading space for left brace
…turn-type-bugs Fix two opaque return type bugs
Prefix operators in Swift need to be marked as `prefix func`. For example, the lack of `prefix` attribute prevents the user from conforming a C++ type that defines `operator!` to a Swift protocol that requires `static prefix func !(obj: Self) -> Self`.
…c-engine [cxx-interop][SwiftCompilerSources] Use `swift::DiagnosticEngine` instead of `BridgedDiagnosticEngine`
…exclaim-prefix [cxx-interop] Mark `operator!` as `prefix func`
Calling `StructDecl::lookupDirect` with an operator identifier (e.g. `==`) previously returned no results. This happened because the underlying C++ operator function was added to the lookup table with an underscored name (e.g. `__operatorEqualEqual`), and the synthesized function was not added to the lookup table at all. Lookup should find the synthesized decl, since that is what Swift code will call. This fixes a typechecker error when trying to conform a C++ struct that defines an operator to a Swift protocol with an operator requirement (e.g. `Equatable`).
…rom other modules
…e-cpt [Sema][Revert] Revert CTP to CTP_ReturnStmt for closure result in return stmt
…lookup-fix [cxx-interop] Fix lookup of member operators
[interop][SwiftToCxx] add support for passing/returning value types from other modules
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.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )