File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mlir/lib/Dialect/Complex/IR Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ OpFoldResult ReOp::fold(ArrayRef<Attribute> operands) {
24
24
ArrayAttr arrayAttr = operands[0 ].dyn_cast_or_null <ArrayAttr>();
25
25
if (arrayAttr && arrayAttr.size () == 2 )
26
26
return arrayAttr[0 ];
27
- if (auto createOp = dyn_cast_or_null<CreateOp>( getOperand ().getDefiningOp () ))
27
+ if (auto createOp = getOperand ().getDefiningOp <CreateOp>( ))
28
28
return createOp.getOperand (0 );
29
29
return {};
30
30
}
@@ -34,7 +34,7 @@ OpFoldResult ImOp::fold(ArrayRef<Attribute> operands) {
34
34
ArrayAttr arrayAttr = operands[0 ].dyn_cast_or_null <ArrayAttr>();
35
35
if (arrayAttr && arrayAttr.size () == 2 )
36
36
return arrayAttr[1 ];
37
- if (auto createOp = dyn_cast_or_null<CreateOp>( getOperand ().getDefiningOp () ))
37
+ if (auto createOp = getOperand ().getDefiningOp <CreateOp>( ))
38
38
return createOp.getOperand (1 );
39
39
return {};
40
40
}
You can’t perform that action at this time.
0 commit comments