Skip to content

Commit 3e5030e

Browse files
authored
Merge pull request #70018 from rxwei/issue-70016
2 parents df30c12 + 51acf75 commit 3e5030e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/IRGen/IRABIDetailsProvider.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,10 @@ void LoweredFunctionSignature::visitParameterList(
391391
if (!schema.requiresIndirect()) {
392392
// Skip ABI parameters with empty native representation, as they're not
393393
// emitted in the LLVM IR signature.
394-
if (schema.empty())
394+
if (schema.empty()) {
395+
++currentSilParam;
395396
continue;
397+
}
396398
isIndirect = false;
397399
}
398400
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// RUN: %target-swift-frontend %s -emit-module -emit-objc-header-path %t/Issue70016-Swift.h -module-name Issue70016 -cxx-interoperability-mode=default
2+
3+
public struct Struct {}
4+
public func foo(_ x: Struct) {}

0 commit comments

Comments
 (0)