Skip to content

Commit 195f623

Browse files
[mlir] Use llvm::erase_value (NFC)
1 parent 24f03d9 commit 195f623

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Dialect/Bufferization/IR/BufferDeallocationOpInterface.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ void DeallocationState::addMemrefToDeallocate(Value memref, Block *block) {
120120
}
121121

122122
void DeallocationState::dropMemrefToDeallocate(Value memref, Block *block) {
123-
llvm::erase_if(memrefsToDeallocatePerBlock[block],
124-
[&](const auto &mr) { return mr == memref; });
123+
llvm::erase_value(memrefsToDeallocatePerBlock[block], memref);
125124
}
126125

127126
void DeallocationState::getLiveMemrefsIn(Block *block,

0 commit comments

Comments
 (0)