================
@@ -330,6 +337,19 @@ emitCoercionToMemory(mlir::OpBuilder &builder,
mlir::Location loc,
? srcTy
: dstTy;
+ // Sizes are compared two ways on purpose: relative size in
+ // coercionByteSize terms, which is how slotTy was picked, and capacity in
+ // getTypeSize terms, which is what the alloca is given.
+ [[maybe_unused]] mlir::Type coercedTy = slotTy == srcTy ? dstTy : srcTy;
----------------
erichkeane wrote:
```suggestion
[[maybe_unused]] mlir::Type coercedTy = ((slotTy == srcTy) ? dstTy : srcTy);
```
https://github.com/llvm/llvm-project/pull/220724
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits