[clang] [clang] Allow devirtualisation of indirect calls to final virtual methods (PR #165341)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 30 00:25:44 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
----------------
ojhunt wrote:

Oh, so we're verifying that the correct IR is being generated initially?

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


More information about the cfe-commits mailing list