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.
1 parent 140c024 commit e4f71c8Copy full SHA for e4f71c8
stdlib/public/core/VarArgs.swift
@@ -601,7 +601,7 @@ final internal class __VaListBuilder {
601
// supported vararg type is greater than the alignment of Int, such
602
// as non-iOS ARM. Note that we can't use alignof because it
603
// differs from ABI alignment on some architectures.
604
-#if (arch(arm) && !os(iOS)) || arch(arm64_32)
+#if (arch(arm) && !os(iOS)) || arch(arm64_32) || arch(wasm32)
605
if let arg = arg as? _CVarArgAligned {
606
let alignmentInWords = arg._cVarArgAlignment / MemoryLayout<Int>.size
607
let misalignmentInWords = count % alignmentInWords
0 commit comments