[all-commits] [llvm/llvm-project] f7e9f4: SCC: Allow ReplaceNode to safely support insertion

wjristow via All-commits all-commits at lists.llvm.org
Tue Jan 14 10:33:03 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f7e9f4f4c50245d10ca9869a9f8f3d431dfb6948
      https://github.com/llvm/llvm-project/commit/f7e9f4f4c50245d10ca9869a9f8f3d431dfb6948
  Author: Warren Ristow <warren_ristow at playstation.sony.com>
  Date:   2020-01-14 (Tue, 14 Jan 2020)

  Changed paths:
    M llvm/include/llvm/ADT/SCCIterator.h

  Log Message:
  -----------
  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




More information about the All-commits mailing list