Skip to content

Commit 1ca9235

Browse files
committed
[Serialization] Record the new SIL_EXTRA_STRING block
Also fix up a test
1 parent 4b74517 commit 1ca9235

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Serialization/Serialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ void Serializer::writeBlockInfoBlock() {
975975
BLOCK_RECORD(sil_block, SIL_SOURCE_LOC_REF);
976976
BLOCK_RECORD(sil_block, SIL_DEBUG_VALUE);
977977
BLOCK_RECORD(sil_block, SIL_DEBUG_VALUE_DELIMITER);
978-
978+
BLOCK_RECORD(sil_block, SIL_EXTRA_STRING);
979979

980980
BLOCK(SIL_INDEX_BLOCK);
981981
BLOCK_RECORD(sil_index_block, SIL_FUNC_NAMES);

test/embedded/wrong-linkage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
// REQUIRES: OS=macosx
55

66
@_cdecl("posix_memalign")
7-
func posix_memalign(_ resultPtr:UnsafeMutablePointer<UnsafeMutableRawPointer?>, _ :Int, _ :Int) -> Int32 { // expected-error {{function has wrong linkage to be called from}}
7+
func posix_memalign(_ resultPtr:UnsafeMutablePointer<UnsafeMutableRawPointer?>, _ :Int, _ :Int) -> Int32 { // okay: @_extern(c) declaration is separate
88
return 0
99
}

0 commit comments

Comments
 (0)