Skip to content

Commit 0081ba3

Browse files
[mlir] Remove a redundant cast (NFC)
llvm::all_of already returns bool. Identified with readability-redundant-casting.
1 parent d831f8d commit 0081ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ static bool matchesInsertDestination(const AnalysisState &state,
497497
// terminates. All of them must be equivalent subsets.
498498
SetVector<Value> backwardSlice =
499499
state.findValueInReverseUseDefChain(opOperand, matchingSubset);
500-
return static_cast<bool>(llvm::all_of(backwardSlice, matchingSubset));
500+
return llvm::all_of(backwardSlice, matchingSubset);
501501
}
502502

503503
/// Return "true" if the given "read" and potentially conflicting "write" are

0 commit comments

Comments
 (0)