mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 21:32:49 +00:00
CodeGen: Fixup for r280128, since GCC isn't as permissive as Clang
Fixes the bots, e.g.: http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-buildserver/builds/10055 llvm-svn: 280135
This commit is contained in:
parent
4f03f012c7
commit
1463620411
@ -46,9 +46,9 @@ private:
|
|||||||
public:
|
public:
|
||||||
void addNodeToList(MachineInstr *N);
|
void addNodeToList(MachineInstr *N);
|
||||||
void removeNodeFromList(MachineInstr *N);
|
void removeNodeFromList(MachineInstr *N);
|
||||||
template <class Iterator>
|
void transferNodesFromList(ilist_traits &OldList,
|
||||||
void transferNodesFromList(ilist_traits &OldList, Iterator First,
|
simple_ilist<MachineInstr>::iterator First,
|
||||||
Iterator Last);
|
simple_ilist<MachineInstr>::iterator Last);
|
||||||
|
|
||||||
void deleteNode(MachineInstr *MI);
|
void deleteNode(MachineInstr *MI);
|
||||||
// Leave out createNode...
|
// Leave out createNode...
|
||||||
|
@ -118,11 +118,9 @@ void ilist_traits<MachineInstr>::removeNodeFromList(MachineInstr *N) {
|
|||||||
|
|
||||||
/// When moving a range of instructions from one MBB list to another, we need to
|
/// When moving a range of instructions from one MBB list to another, we need to
|
||||||
/// update the parent pointers and the use/def lists.
|
/// update the parent pointers and the use/def lists.
|
||||||
template <>
|
void ilist_traits<MachineInstr>::transferNodesFromList(
|
||||||
void ilist_traits<MachineInstr>::transferNodesFromList<
|
ilist_traits &FromList, simple_ilist<MachineInstr>::iterator First,
|
||||||
ilist<MachineInstr>::iterator>(ilist_traits<MachineInstr> &FromList,
|
simple_ilist<MachineInstr>::iterator Last) {
|
||||||
ilist<MachineInstr>::iterator First,
|
|
||||||
ilist<MachineInstr>::iterator Last) {
|
|
||||||
assert(Parent->getParent() == FromList.Parent->getParent() &&
|
assert(Parent->getParent() == FromList.Parent->getParent() &&
|
||||||
"MachineInstr parent mismatch!");
|
"MachineInstr parent mismatch!");
|
||||||
assert(this != &FromList && "Called without a real transfer...");
|
assert(this != &FromList && "Called without a real transfer...");
|
||||||
|
Loading…
Reference in New Issue
Block a user