[Serialization] Record the new SIL_EXTRA_STRING block

Also fix up a test
This commit is contained in:
Doug Gregor
2025-10-16 06:41:56 -07:00
parent 4b745170c3
commit 1ca9235de6
2 changed files with 2 additions and 2 deletions

View File

@@ -975,7 +975,7 @@ void Serializer::writeBlockInfoBlock() {
BLOCK_RECORD(sil_block, SIL_SOURCE_LOC_REF);
BLOCK_RECORD(sil_block, SIL_DEBUG_VALUE);
BLOCK_RECORD(sil_block, SIL_DEBUG_VALUE_DELIMITER);
BLOCK_RECORD(sil_block, SIL_EXTRA_STRING);
BLOCK(SIL_INDEX_BLOCK);
BLOCK_RECORD(sil_index_block, SIL_FUNC_NAMES);

View File

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