[clang] [CodeGen] [VTable] don't think linkonce vtable as unique (PR #197855)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Fri May 15 00:13:41 PDT 2026


================
@@ -1,11 +1,12 @@
 // RUN: %clang_cc1 -I%S %s -triple x86_64-apple-darwin10 -O1 -emit-llvm -std=c++11 -o - | FileCheck %s --check-prefixes=CHECK,EXACT
 // RUN: %clang_cc1 -I%S %s -triple x86_64-apple-darwin10 -O0 -emit-llvm -std=c++11 -o - | FileCheck %s --check-prefixes=CHECK,INEXACT
-// RUN: %clang_cc1 -I%S %s -triple x86_64-apple-darwin10 -O1 -fvisibility=hidden -emit-llvm -std=c++11 -o - | FileCheck %s --check-prefixes=CHECK,INEXACT
 // RUN: %clang_cc1 -I%S %s -triple x86_64-apple-darwin10 -O1 -fapple-kext -emit-llvm -std=c++11 -o - | FileCheck %s --check-prefixes=CHECK,INEXACT
----------------
ChuanqiXu9 wrote:

`-flto` is not directly related to this. As if this TU is not compiled as `-flto` but other TU compiled as `-flto`, all of them shouldn't assume the address to be the same.

https://github.com/llvm/llvm-project/pull/197855


More information about the cfe-commits mailing list