[Mlir-commits] [mlir] [mlir][arith] Fix addui_extended fold assert on non-TypedAttr operands (PR #179140)
Jakub Kuderski
llvmlistbot at llvm.org
Mon Feb 2 06:36:39 PST 2026
================
@@ -459,10 +459,12 @@ arith::AddUIExtendedOp::fold(FoldAdaptor adaptor,
if (Attribute sumAttr = constFoldBinaryOp<IntegerAttr>(
----------------
kuhar wrote:
```suggestion
if (auto sumAttr = dyn_cast_if_present<TypedAttr>(constFoldBinaryOp<IntegerAttr>(
```
https://github.com/llvm/llvm-project/pull/179140
More information about the Mlir-commits
mailing list