[all-commits] [llvm/llvm-project] 887efa: Fix DenseMap iterator asserts when shouldReverseIt...

thegreatbeanz via All-commits all-commits at lists.llvm.org
Mon Apr 20 17:32:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 887efa51c1e0e43ca684ed78b92dbc3a0720881b
      https://github.com/llvm/llvm-project/commit/887efa51c1e0e43ca684ed78b92dbc3a0720881b
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2020-04-20 (Mon, 20 Apr 2020)

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

  Log Message:
  -----------
  Fix DenseMap iterator asserts when shouldReverseIterate==true

This patch gets the asserts working correctly when LLVM_REVERSE_ITERATION=On by fixing the iterators returned by the DenseMap::find* methods so that they return well-formed iterators that work with reverse iteration, and satisfy the assertions.




More information about the All-commits mailing list