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

Balogh, Ádám via All-commits all-commits at lists.llvm.org
Wed Oct 21 03:11:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a6336eab0c507b665dda63fa9db1292a2cdee409
      https://github.com/llvm/llvm-project/commit/a6336eab0c507b665dda63fa9db1292a2cdee409
  Author: Adam Balogh <adam.balogh at ericsson.com>
  Date:   2020-10-21 (Wed, 21 Oct 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




More information about the All-commits mailing list