[clang] [clang] Allow devirtualisation of indirect calls to final virtual methods (PR #165341)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 30 00:23:17 PDT 2025
================
@@ -0,0 +1,414 @@
+// Actual triple does not matter, just ensuring that the ABI being used for
+// mangling and similar is consistent. Choosing x86_64 as that seems to be a
+// configured target for most build configurations
+// RUN: %clang_cc1 -triple=x86_64 -std=c++26 %s -emit-llvm -O3 -o - | FileCheck %s
+// RUN: %clang_cc1 -triple=x86_64 -std=c++26 %s -emit-llvm -O3 -fstrict-vtable-pointers -o - | FileCheck %s --check-prefix=STRICT
----------------
ChuanqiXu9 wrote:
nit2: for CodeGen changes, it is better to add another check with `-disable-llvm-passes` to check the generated codes.
https://github.com/llvm/llvm-project/pull/165341
More information about the cfe-commits
mailing list