================
@@ -2280,6 +2280,8 @@ void LoweringPreparePass::runOnOp(mlir::Operation *op) {
lowerArrayDtor(arrayDtor);
} else if (auto findOp = mlir::dyn_cast<cir::StdFindOp>(op)) {
lowerStdOp(findOp);
+ } else if (auto strlenOp = mlir::dyn_cast<cir::StrLenOp>(op)) {
----------------
erichkeane wrote:
I wonder if we should have a common base-class here for these ops, so we can
just do a single `if` here and only a single option on the `runOnOperation`
below.
https://github.com/llvm/llvm-project/pull/210400
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits