================
@@ -897,8 +897,12 @@ class CallDeleteDuringNew final
// is an enum whose underlying type is std::size_t.
// FIXME: Use the right type as the parameter type. Note that in a call
// to operator delete(size_t, ...), we may not have it available.
- if (isAlignedAllocation(params.Alignment))
- cgf.cgm.errorNYI("CallDeleteDuringNew: aligned allocation");
+ if (isAlignedAllocation(params.Alignment)) {
+ QualType sizeType = cgf.getContext().getSizeType();
+ cir::ConstantOp align = cgf.getBuilder().getConstInt(
----------------
erichkeane wrote:
We do this often enough, CIRBaseBuilder should probably have a `getAlignment`
(like it does for `getAlignmentAttr`) so that we cna just do args.add
alignment/alignment.getType.
https://github.com/llvm/llvm-project/pull/197094
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits