Skip to content

Commit dbdff3e

Browse files
committed
Fixed compilation warning.
1 parent d83bdc8 commit dbdff3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ llvm::LogicalResult hlfir::CShiftOp::verify() {
13591359
mlir::Value shift = getShift();
13601360
mlir::Type shiftTy = hlfir::getFortranElementOrSequenceType(shift.getType());
13611361

1362-
if (eleTy != resultEleTy)
1362+
if (eleTy != resultEleTy) {
13631363
if (mlir::isa<fir::CharacterType>(eleTy) &&
13641364
mlir::isa<fir::CharacterType>(resultEleTy)) {
13651365
auto eleCharTy = mlir::cast<fir::CharacterType>(eleTy);
@@ -1375,6 +1375,7 @@ llvm::LogicalResult hlfir::CShiftOp::verify() {
13751375
return emitOpError(
13761376
"input and output arrays should have the same element type");
13771377
}
1378+
}
13781379

13791380
if (arrayRank != resultRank)
13801381
return emitOpError("input and output arrays should have the same rank");

0 commit comments

Comments
 (0)