summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/vtable-key-function-win-comdat.cpp
diff options
context:
space:
mode:
authorDaniil Kovalev <dkovalev@accesssoftek.com>2024-10-18 08:58:26 +0300
committerGitHub <noreply@github.com>2024-10-18 08:58:26 +0300
commit6bb63002fca8a7cfa9ff8ffd86da4c2ca3d98a3b (patch)
treefc1696ad14b39d195304eb623158477e1e9d86a0 /clang/test/CodeGenCXX/vtable-key-function-win-comdat.cpp
parentf225b0779992bf8698d08534e256363595903c43 (diff)
[PAC] Fix address discrimination for type info vtable pointers (#102199)
In #99726, `-fptrauth-type-info-vtable-pointer-discrimination` was introduced, which is intended to enable type and address discrimination for type_info vtable pointers. However, some codegen logic for actually enabling address discrimination was missing. This patch addresses the issue. Fixes #101716
Diffstat (limited to 'clang/test/CodeGenCXX/vtable-key-function-win-comdat.cpp')
-rw-r--r--clang/test/CodeGenCXX/vtable-key-function-win-comdat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/vtable-key-function-win-comdat.cpp b/clang/test/CodeGenCXX/vtable-key-function-win-comdat.cpp
index dd4fd9f8754a..b3de2f634999 100644
--- a/clang/test/CodeGenCXX/vtable-key-function-win-comdat.cpp
+++ b/clang/test/CodeGenCXX/vtable-key-function-win-comdat.cpp
@@ -15,11 +15,11 @@ Test1a::Test1a() { use(typeid(Test1a)); }
inline void Test1a::foo() {}
// CHECK: $_ZTV6Test1a = comdat any
-// CHECK: $_ZTS6Test1a = comdat any
// CHECK: $_ZTI6Test1a = comdat any
-// CHECK-NOT: $_ZTS6Test1a.1 = comdat any
+// CHECK: $_ZTS6Test1a = comdat any
// CHECK-NOT: $_ZTI6Test1a.1 = comdat any
+// CHECK-NOT: $_ZTS6Test1a.1 = comdat any
// CHECK: @_ZTV6Test1a = linkonce_odr dso_local unnamed_addr constant {{.*}} ptr @_ZTI6Test1a
-// CHECK: @_ZTS6Test1a = linkonce_odr dso_local constant
// CHECK: @_ZTI6Test1a = linkonce_odr dso_local constant {{.*}} ptr @_ZTS6Test1a
+// CHECK: @_ZTS6Test1a = linkonce_odr dso_local constant