File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
flang/lib/Optimizer/HLFIR/IR Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments