Skip to content

Commit be03b14

Browse files
committed
Apply clang-tidy fixes for llvm-else-after-return in IRCore.cpp (NFC)
1 parent 962bf00 commit be03b14

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Bindings/Python/IRCore.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,8 +981,7 @@ MlirDialect PyDialects::getDialectForKey(const std::string &key,
981981
std::string msg = (Twine("Dialect '") + key + "' not found").str();
982982
if (attrError)
983983
throw py::attribute_error(msg);
984-
else
985-
throw py::index_error(msg);
984+
throw py::index_error(msg);
986985
}
987986
return dialect;
988987
}

0 commit comments

Comments
 (0)