[all-commits] [llvm/llvm-project] 660876: [clang] Bail out when handling union access with v...
Antonio Frighetto via All-commits
all-commits at lists.llvm.org
Wed Sep 13 23:49:48 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 660876a4019b81b5a7427a3dcec5ce8c39cd1ee0
https://github.com/llvm/llvm-project/commit/660876a4019b81b5a7427a3dcec5ce8c39cd1ee0
Author: Antonio Frighetto <me at antoniofrighetto.com>
Date: 2023-09-14 (Thu, 14 Sep 2023)
Changed paths:
M clang/lib/AST/ExprConstant.cpp
A clang/test/SemaCXX/cxx2a-virtual-base-used.cpp
Log Message:
-----------
[clang] Bail out when handling union access with virtual inheritance
An assertion issue that arose when handling union member access with
virtual base class has been addressed. As pointed out by @zygoloid,
there is no need for further derived-to-base analysis in this instance,
so we can bail out upon encountering a virtual base class. Minor
refinement on the function name as we might not be handling a union.
Reported-By: ormris
Fixes: https://github.com/llvm/llvm-project/issues/65982
More information about the All-commits
mailing list