[all-commits] [llvm/llvm-project] 2c42a7: Add extra check for llvm::Any::TypeId visibility

serge-sans-paille via All-commits all-commits at lists.llvm.org
Tue Sep 14 23:33:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c42a73d6c39af3833e697c0b306cb8cf8de5143
      https://github.com/llvm/llvm-project/commit/2c42a73d6c39af3833e697c0b306cb8cf8de5143
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2021-09-15 (Wed, 15 Sep 2021)

  Changed paths:
    M llvm/test/lit.cfg.py
    M llvm/test/lit.site.cfg.py.in
    A llvm/test/tools/llvm-shlib/typeids.test

  Log Message:
  -----------
  Add extra check for llvm::Any::TypeId visibility

This check should ensure we don't reproduce the problem fixed by
02df443d2801601a4e42e360e436d97314e9da30

More accurately, it checks every llvm::Any::TypeId symbol in libLLVM-x.so and
make sure they have weak linkage and are not local to the library, which would
lead to duplicate definition if another weak version of the symbol is defined in
another linked library.

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




More information about the All-commits mailing list