[clang] [Clang] Allow devirtualization involving array subscripts with constant indices when the pointee type is known (PR #207540)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 13 06:17:09 PDT 2026
================
@@ -2600,6 +2600,41 @@ CXXMethodDecl *CXXMethodDecl::getDevirtualizedMethod(const Expr *Base,
}
}
+ // By CWG1504 / [expr.add]/6, pointer arithmetic on a base pointer into an
----------------
cor3ntin wrote:
Please add a standard version here
https://github.com/llvm/llvm-project/pull/207540
More information about the cfe-commits
mailing list