Apply clang-tidy fixes for llvm-else-after-return in OpenMPDialect.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-05-24 00:20:55 +00:00
parent da3b8200e5
commit c067a9dee5
1 changed files with 2 additions and 1 deletions

View File

@ -985,7 +985,8 @@ LogicalResult CancelOp::verify() {
if (cast<WsLoopOp>(parentOp).nowaitAttr()) {
return emitError() << "A worksharing construct that is canceled "
<< "must not have a nowait clause";
} else if (cast<WsLoopOp>(parentOp).ordered_valAttr()) {
}
if (cast<WsLoopOp>(parentOp).ordered_valAttr()) {
return emitError() << "A worksharing construct that is canceled "
<< "must not have an ordered clause";
}