[Mlir-commits] [mlir] 8383bf2 - Apply clang-tidy fixes for llvm-else-after-return in IndexingUtils.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Feb 14 10:12:37 PST 2024
Author: Mehdi Amini
Date: 2024-02-14T10:11:37-08:00
New Revision: 8383bf23074e4a7910441aa7ab54707242eac405
URL: https://github.com/llvm/llvm-project/commit/8383bf23074e4a7910441aa7ab54707242eac405
DIFF: https://github.com/llvm/llvm-project/commit/8383bf23074e4a7910441aa7ab54707242eac405.diff
LOG: Apply clang-tidy fixes for llvm-else-after-return in IndexingUtils.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Utils/IndexingUtils.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Utils/IndexingUtils.cpp b/mlir/lib/Dialect/Utils/IndexingUtils.cpp
index 2765d1eb1000da..baaa581ab6f225 100644
--- a/mlir/lib/Dialect/Utils/IndexingUtils.cpp
+++ b/mlir/lib/Dialect/Utils/IndexingUtils.cpp
@@ -271,9 +271,8 @@ static MLIRContext *getContext(OpFoldResult val) {
assert(val && "Invalid value");
if (auto attr = dyn_cast<Attribute>(val)) {
return attr.getContext();
- } else {
- return cast<Value>(val).getContext();
}
+ return cast<Value>(val).getContext();
}
std::pair<AffineExpr, SmallVector<OpFoldResult>>
More information about the Mlir-commits
mailing list