intrusive_list: Make Remove and IsEmpty stdlib compatible

Makes the name match the standard library equivalents.

C++17 introduces non-member empty() which allows for nicer handling
in generic contexts. May as well make the data structure compatible with
it.
This commit is contained in:
Lioncash 2016-08-18 21:23:51 -04:00 committed by MerryMage
parent 23d190f7b0
commit a8ba15f0d5
3 changed files with 4 additions and 4 deletions

View file

@ -61,7 +61,7 @@ void DeadCodeElimination(IR::Block& block) {
// We iterate over the instructions in reverse order.
// This is because removing an instruction reduces the number of uses for earlier instructions.
if (block.instructions.IsEmpty()) {
if (block.instructions.empty()) {
return;
}