Skip to content

Commit 79a0bf0

Browse files
committed
[NFC][MLIR] Fix crash in ConvertComplexPow.
1 parent a04d3ca commit 79a0bf0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

flang/lib/Optimizer/Transforms/ConvertComplexPow.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ void ConvertComplexPowPass::runOnOperation() {
8383
call.setFastmathAttr(fmf);
8484
powIop.replaceAllUsesWith(call.getResult(0));
8585
powIop.erase();
86-
}
87-
88-
if (auto powOp = dyn_cast<complex::PowOp>(op)) {
86+
} else if (auto powOp = dyn_cast<complex::PowOp>(op)) {
8987
builder.setInsertionPoint(powOp);
9088
Location loc = powOp.getLoc();
9189
auto complexTy = cast<ComplexType>(powOp.getType());

0 commit comments

Comments
 (0)