Skip to content

Commit 8383bf2

Browse files
committed
Apply clang-tidy fixes for llvm-else-after-return in IndexingUtils.cpp (NFC)
1 parent 1ddc541 commit 8383bf2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Dialect/Utils/IndexingUtils.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,8 @@ static MLIRContext *getContext(OpFoldResult val) {
271271
assert(val && "Invalid value");
272272
if (auto attr = dyn_cast<Attribute>(val)) {
273273
return attr.getContext();
274-
} else {
275-
return cast<Value>(val).getContext();
276274
}
275+
return cast<Value>(val).getContext();
277276
}
278277

279278
std::pair<AffineExpr, SmallVector<OpFoldResult>>

0 commit comments

Comments
 (0)