[all-commits] [llvm/llvm-project] 29d35e: [clang][dataflow] Fix MapLattice::insert() to not ...

Eric Li via All-commits all-commits at lists.llvm.org
Mon Jul 25 11:25:14 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29d35ece8249f2d8a51437a5c008e6bf63da9874
  Author: Eric Li <li.zhe.hua at gmail.com>
  Date:   2022-07-25 (Mon, 25 Jul 2022)

  Changed paths:
    M clang/include/clang/Analysis/FlowSensitive/MapLattice.h
    M clang/unittests/Analysis/FlowSensitive/MapLatticeTest.cpp

  Log Message:
  [clang][dataflow] Fix MapLattice::insert() to not drop return value

Fix `MapLattice` API to return `std::pair<iterator, bool>`,
allowing users to detect when an element has been inserted without
performing a redundant map lookup.

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

More information about the All-commits mailing list