Skip to content

Conversation

pull[bot]
Copy link

@pull pull bot commented Jul 16, 2022

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

evnik and others added 25 commits July 8, 2022 17:43
…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
…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`).
…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
@kateinoigakukun kateinoigakukun merged commit 8392254 into swiftwasm Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.