[all-commits] [llvm/llvm-project] 380e1d: [utils] The func_dict for a prefix may just be empty

Louis Dionne via All-commits all-commits at lists.llvm.org
Tue Dec 15 08:54:34 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 380e1d918cb4581fae0277ff547d75334f3e7ddd
      https://github.com/llvm/llvm-project/commit/380e1d918cb4581fae0277ff547d75334f3e7ddd
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2020-12-15 (Tue, 15 Dec 2020)

  Changed paths:
    M llvm/utils/UpdateTestChecks/common.py

  Log Message:
  -----------
  [utils] The func_dict for a prefix may just be empty

Follow up from D92965 - since we try to find failed prefixes
after each RUN line, it's possible the whole list of functions for a
prefix be non-existent, which is fine - this happens when none of the
RUN lines seen so far used the prefix.


  Commit: a00290ed10a6b4e9f6e9be44ceec367562f270c6
      https://github.com/llvm/llvm-project/commit/a00290ed10a6b4e9f6e9be44ceec367562f270c6
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2020-12-15 (Tue, 15 Dec 2020)

  Changed paths:
    M libcxx/include/__memory/utilities.h
    A libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared.explicit_conversion.pass.cpp

  Log Message:
  -----------
  [libc++] Fix allocate_shared when used with an explicitly convertible allocator

When the allocator is only explicitly convertible from other specializations
of itself, the new version of std::allocate_shared would not work because
it would try to do an implicit conversion. This patch fixes the problem
and adds a test so that we don't fall into the same trap in the future.


Compare: https://github.com/llvm/llvm-project/compare/8acb5f2723ec...a00290ed10a6


More information about the All-commits mailing list