[all-commits] [llvm/llvm-project] 1f924c: [CIR] Fix base-class index in const-record when th...
Erich Keane via All-commits
all-commits at lists.llvm.org
Fri Oct 2 12:39:48 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1f924cfebe818cd6c8a4528663b8418c917e1bd4
https://github.com/llvm/llvm-project/commit/1f924cfebe818cd6c8a4528663b8418c917e1bd4
Author: Erich Keane <ekeane at nvidia.com>
Date: 2026-10-02 (Fri, 02 Oct 2026)
Changed paths:
M clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp
A clang/test/CIR/CodeGen/const-init-multi-base.cpp
Log Message:
-----------
[CIR] Fix base-class index in const-record when there is a vbase (#228484)
buidlRecordHelper didn't skip the 'virtual' bases like APValue did, so
the presence of a virtual base alone was enough to throw the index off.
This patch gets us slightly more in line with how this is done in
classic codegen.
It is really only reachable in C++26 because of the relaxed constexpr
rules iwth virtual bases, so it needs its own test.
Fixes: #228302
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list