Skip to content
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

Add a new parameter convention @in_cxx for non-trivial C++ classes that are passed indirectly and destructed by the caller #73019

Merged
merged 10 commits into from
Jun 27, 2024
Prev Previous commit
Next Next commit
Add missing case
  • Loading branch information
ahatanaka committed Jun 26, 2024
commit 3d102ed9d3be241893c2aed887fd15d0e4aa4995
2 changes: 1 addition & 1 deletion SwiftCompilerSources/Sources/SIL/Argument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public enum ArgumentConvention : CustomStringConvertible {

public var isConsumed: Bool {
switch self {
case .indirectIn, .directOwned, .packOwned:
case .indirectIn, .indirectInCXX, .directOwned, .packOwned:
return true
case .indirectInGuaranteed, .directGuaranteed, .packGuaranteed,
.indirectInout, .indirectInoutAliasable, .indirectOut,
Expand Down