Skip to content

Commit 8db26d3

Browse files
committed
Add back check
1 parent e78f937 commit 8db26d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/include/llvm/Support/PropertySetIO.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ class PropertySetRegistry {
239239
return;
240240
auto &PropertySet = PropertySetIt->second;
241241
PropertySet.erase(PropertySet.find(PropName));
242+
auto PropIt = PropertySet.find(PropName);
243+
if (PropIt == PropertySet.end())
244+
return;
245+
PropertySet.erase(PropIt);
242246
}
243247

244248
/// Parses from the given \p Buf a property set registry.

0 commit comments

Comments
 (0)