intrusive_list: Support inserters

Allows std::inserter, std::back_inserter, and std::front_inserter to work
with intrusive lists.
This commit is contained in:
Lioncash 2016-08-18 21:13:14 -04:00 committed by MerryMage
parent 36a0ad5bc2
commit 23d190f7b0
2 changed files with 27 additions and 38 deletions

View file

@ -515,7 +515,7 @@ IR::Value IREmitter::Inst(IR::Opcode op, std::initializer_list<IR::Value> args)
index++;
});
block.instructions.Append(*inst);
block.instructions.push_back(inst);
return IR::Value(inst);
}