Files
swift-mirror/test/IRGen/Inputs/inline_dynamic_self_module.swift
T
Meghana Gupta e6dd2f1f12 Avoid inlining when substitution map has dynamic self
This is a workaround to avoid missing lowering of dynamic_self in IRGen

Fixes rdar://174428100
2026-04-09 21:00:40 -07:00

11 lines
231 B
Swift

@inlinable @inline(__always)
public func withWrapper<R>(_ body: @escaping (Int) -> R) -> R {
_withInner { x in body(x) }
}
@usableFromInline
@inline(never)
internal func _withInner<R>(_ body: (Int) -> R) -> R {
body(42)
}