HomePhabricator

SCC: Allow ReplaceNode to safely support insertion

Authored by wristow on Tue, Jan 14, 10:30 AM.

Description

SCC: Allow ReplaceNode to safely support insertion

If scc_iterator::ReplaceNode is inserting a new entry in the map,
rather than replacing an existing entry, the possibility of growing
the map could cause a failure. This change safely implements the
insertion.

Reviewed By: probinson

Differential Revision: https://reviews.llvm.org/D72469

Details

Committed
wristowTue, Jan 14, 10:30 AM
Reviewer
probinson
Differential Revision
D72469: SCC: Allow ReplaceNode to safely support insertion
Parents
rGeb23cc136b68: [AIX][XCOFF] Supporting the ReadOnlyWithRel SectionKnd
Branches
Unknown
Tags
Unknown