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

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 27 18:48:36 PDT 2025


================
@@ -0,0 +1,95 @@
+// RUN: %clang_cc1 -std=c++26 %s -emit-llvm -O3                          -o - | FileCheck %s
+// RUN: %clang_cc1 -std=c++26 %s -emit-llvm -O3 -fstrict-vtable-pointers -o - | FileCheck %s --check-prefix=STRICT
----------------
ChuanqiXu9 wrote:

Maybe we don't need `-std=c++26`?

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


More information about the cfe-commits mailing list