[all-commits] [llvm/llvm-project] 475cc4: [Clang] Modify sanity check assert in AggExprEmitt...
Shafik Yaghmour via All-commits
all-commits at lists.llvm.org
Wed Dec 21 10:50:22 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 475cc44a2cba45c5449a323c6b331ddc593bd8de
https://github.com/llvm/llvm-project/commit/475cc44a2cba45c5449a323c6b331ddc593bd8de
Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
Date: 2022-12-21 (Wed, 21 Dec 2022)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/CodeGen/CGExprAgg.cpp
M clang/test/SemaCXX/anonymous-struct.cpp
Log Message:
-----------
[Clang] Modify sanity check assert in AggExprEmitter::VisitInitListExpr to cover anonymous struct in a union GNU extension
AggExprEmitter::VisitInitListExpr sanity checks that an empty union is really
empty and not a semantic analysis failure. The assert is missing that we allow
anonymous structs as a GNU extension. I have updated the assert to take that into account.
This fixes: https://github.com/llvm/llvm-project/issues/58800
Differential Revision: https://reviews.llvm.org/D139261
More information about the All-commits
mailing list