================
@@ -903,8 +1440,7 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const
APValue &value,
return ConstantLValueEmitter(*this, value, destType).tryEmit();
case APValue::Struct:
case APValue::Union:
- cgm.errorNYI("ConstExprEmitter::tryEmitPrivate struct or union");
- return {};
+ return ConstRecordBuilder::buildRecord(*this, value, destType);
----------------
mmha wrote:
Yes. In `constant-inits.cpp` `Point` contains `empty` which is a struct.
https://github.com/llvm/llvm-project/pull/155663
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits