HomePhabricator

Fix Block::eraseArguments: keep track the first removed element while removing

Authored by mehdi_amini on Feb 27 2021, 11:18 AM.

Description

Fix Block::eraseArguments: keep track the first removed element while removing

Not only this is likely more efficient than BitVector::find_first(), but
also if the BitVector is empty find_first() returns -1, which
llvm::drop_begin isn't robust against.

Details

Committed
mehdi_aminiFeb 27 2021, 11:18 AM
Parents
rG7b06786de239: Fix Block::eraseArguments to properly update the cached positions
Branches
Unknown
Tags
Unknown