[all-commits] [llvm/llvm-project] 8d9f51: [CIR] Unblock simple C++ structure support (#138368)
Andy Kaylor via All-commits
all-commits at lists.llvm.org
Wed May 7 09:21:23 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8d9f5160b443f431f20f8f88183898503b62a173
https://github.com/llvm/llvm-project/commit/8d9f5160b443f431f20f8f88183898503b62a173
Author: Andy Kaylor <akaylor at nvidia.com>
Date: 2025-05-07 (Wed, 07 May 2025)
Changed paths:
M clang/lib/CIR/CodeGen/CIRGenExpr.cpp
M clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp
M clang/lib/CIR/CodeGen/CIRGenRecordLayout.h
M clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp
M clang/lib/CIR/CodeGen/CIRGenTypes.cpp
M clang/lib/CIR/CodeGen/CIRGenTypes.h
A clang/test/CIR/CodeGen/nonzeroinit-struct.cpp
M clang/test/CIR/CodeGen/struct.cpp
A clang/test/CIR/CodeGen/union.cpp
Log Message:
-----------
[CIR] Unblock simple C++ structure support (#138368)
This change adds additional checks to a few places where a simple struct
in C++ code was triggering `errorNYI` in places where no additional
handling was needed, and adds a very small amount of trivial
initialization. The code now checks for the conditions that do require
extra handling before issuing the diagnostic.
New tests are added for declaring and using a simple struct in C++ code.
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