================
@@ -2969,6 +2969,12 @@ static void prepareTypeConverter(mlir::LLVMTypeConverter
&converter,
break;
// Unions are lowered as only the largest member.
case cir::RecordType::Union:
+ if (type.getMembers().empty()) {
+ if (type.getPadded())
+ llvmMembers.push_back(
----------------
Men-cotton wrote:
Thank you for pointing this out!
I added the assertion and ran it locally, and confirmed that this was indeed
unnecessary. So, I have deleted this.
I do not have access to commit, so if there are no additional issues, please
merge it.
https://github.com/llvm/llvm-project/pull/172666
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits