[all-commits] [llvm/llvm-project] 02004c: [ADT] Fix for ImmutableMapRef

Balogh, Ádám via All-commits all-commits at lists.llvm.org
Wed Nov 11 20:19:38 PST 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 02004c9e7c9668465585a35a33c6580cc4e3056f
      https://github.com/llvm/llvm-project/commit/02004c9e7c9668465585a35a33c6580cc4e3056f
  Author: Adam Balogh <adam.balogh at ericsson.com>
  Date:   2020-11-11 (Wed, 11 Nov 2020)

  Changed paths:
    M llvm/include/llvm/ADT/ImmutableMap.h
    M llvm/unittests/ADT/ImmutableMapTest.cpp

  Log Message:
  -----------
  [ADT] Fix for ImmutableMapRef

The `Root` member of `ImmutableMapRef` was changed recently from a plain
pointer to `IntrusiveRefCntPtr`. However, the `Profile` member function
was not adjusted. This results in comilation error whenever the
`Profile` method is used on an `ImmutableMapRef`. This patch fixes this
issue and also adds unit tests for `ImmutableMapRef`.

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

(cherry picked from commit 184eb4fa4f1cc871692fa390261df8c25ddcc7ec)




More information about the All-commits mailing list