mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-07 23:18:10 +01:00
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:
parent
23d190f7b0
commit
a8ba15f0d5
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue