Skip to content

Commit 918acfa

Browse files
authored
Merge pull request #65077 from etcwilde/ewilde/5.9/metadata-cleanup
[🍒 5.9] Replace mismatched `delete` with `swift_cxx_deleteObject`
2 parents ad68bf3 + 69fe560 commit 918acfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/Metadata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ namespace {
10631063

10641064
// Otherwise, use the new entry and destroy the one we allocated.
10651065
assert(existingEntry && "spurious failure of strong compare-exchange?");
1066-
delete allocatedEntry;
1066+
swift_cxx_deleteObject(allocatedEntry);
10671067
}
10681068

10691069
return { static_cast<SingletonMetadataCacheEntry*>(existingEntry), false };

0 commit comments

Comments
 (0)