diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2023-10-20 01:34:06 -0700 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2023-11-18 15:38:21 -0800 |
commit | be03b14d3c7f073cf45600dd28cc5b532d68a95c (patch) | |
tree | f56f5b5bb29b82561593ed36ca7968450fbd54cf | |
parent | 962bf002fec2672ea61de49cfb945ff031830819 (diff) |
Apply clang-tidy fixes for llvm-else-after-return in IRCore.cpp (NFC)
-rw-r--r-- | mlir/lib/Bindings/Python/IRCore.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mlir/lib/Bindings/Python/IRCore.cpp b/mlir/lib/Bindings/Python/IRCore.cpp index 3ddb750bbcab..fb02b73a79f4 100644 --- a/mlir/lib/Bindings/Python/IRCore.cpp +++ b/mlir/lib/Bindings/Python/IRCore.cpp @@ -981,8 +981,7 @@ MlirDialect PyDialects::getDialectForKey(const std::string &key, std::string msg = (Twine("Dialect '") + key + "' not found").str(); if (attrError) throw py::attribute_error(msg); - else - throw py::index_error(msg); + throw py::index_error(msg); } return dialect; } |