mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This was because `LoweredFunctionSignature::visitParameterList` has a special case for parameters with an empty LLVM representation (e.g. an empty struct) but forgot to increment the counter, which then tripped the assertion. Resolves #70016.
5 lines
208 B
Swift
5 lines
208 B
Swift
// RUN: %target-swift-frontend %s -emit-module -emit-objc-header-path %t/Issue70016-Swift.h -module-name Issue70016 -cxx-interoperability-mode=default
|
|
|
|
public struct Struct {}
|
|
public func foo(_ x: Struct) {}
|