================
@@ -30,7 +30,8 @@ llvm::Align CIRDataLayout::getAlignment(mlir::Type ty, bool
useABIAlign) const {
return llvm::Align(1);
// Get the layout annotation... which is lazily created on demand.
- llvm_unreachable("getAlignment()) for record type is not implemented");
+ assert(!cir::MissingFeatures::alignCXXRecordDecl());
+ return llvm::Align(1);
----------------
mmha wrote:
Seems to work :)
https://github.com/llvm/llvm-project/pull/155663
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits