Skip to content

Commit 176bf34

Browse files
authored
Merge pull request #65076 from etcwilde/ewilde/metadata-cleanup
Replace mismatched `delete` with `swift_cxx_deleteObject`
2 parents d0a3082 + f47d563 commit 176bf34

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
@@ -1074,7 +1074,7 @@ namespace {
10741074

10751075
// Otherwise, use the new entry and destroy the one we allocated.
10761076
assert(existingEntry && "spurious failure of strong compare-exchange?");
1077-
delete allocatedEntry;
1077+
swift_cxx_deleteObject(allocatedEntry);
10781078
}
10791079

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

0 commit comments

Comments
 (0)