[all-commits] [llvm/llvm-project] 229db3: [libc++] Make __shared_weak_count vtable consisten...

Eric via All-commits all-commits at lists.llvm.org
Tue Oct 20 05:20:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 229db3647491ed2b2706a9b9ce13a97e38be6fa0
      https://github.com/llvm/llvm-project/commit/229db3647491ed2b2706a9b9ce13a97e38be6fa0
  Author: Eric Fiselier <eric at efcs.ca>
  Date:   2020-10-20 (Tue, 20 Oct 2020)

  Changed paths:
    M libcxx/include/memory
    M libcxx/src/memory.cpp
    M libcxxabi/CMakeLists.txt

  Log Message:
  -----------
  [libc++] Make __shared_weak_count vtable consistent across all build configurations

This patch ensures that __shared_weak_count provides a consistent vtable
regardless of if RTTI is enabled or if we are targeting a static or shared
libc++ build.

This patch is technically ABI breaking, but only for a very specific
configuration that no vendor should be shipping.

Note that _LIBCPP_BUILD_STATIC is not normally defined when building
libc++.a, but instead it must be manually provided by the user or the
__config_site.

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




More information about the All-commits mailing list