[Mlir-commits] [mlir] [mlir] Use `OpBuilder::createBlock` in op builders and patterns (PR #82770)

Mehdi Amini llvmlistbot at llvm.org
Fri Feb 23 18:43:43 PST 2024


================
@@ -520,9 +520,7 @@ struct GlobalMemrefOpLowering
         global, arrayTy, global.getConstant(), linkage, global.getSymName(),
         initialValue, alignment, *addressSpace);
     if (!global.isExternal() && global.isUninitialized()) {
-      Block *blk = new Block();
----------------
joker-eph wrote:

Oh these raw uses of `new` always irked me deeply! Glad to see more that are gone

https://github.com/llvm/llvm-project/pull/82770


More information about the Mlir-commits mailing list