We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df30c12 + 51acf75 commit 3e5030eCopy full SHA for 3e5030e
lib/IRGen/IRABIDetailsProvider.cpp
@@ -391,8 +391,10 @@ void LoweredFunctionSignature::visitParameterList(
391
if (!schema.requiresIndirect()) {
392
// Skip ABI parameters with empty native representation, as they're not
393
// emitted in the LLVM IR signature.
394
- if (schema.empty())
+ if (schema.empty()) {
395
+ ++currentSilParam;
396
continue;
397
+ }
398
isIndirect = false;
399
}
400
test/Driver/issue-70016-emit-objc-header-with-empty-struct.swift
@@ -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