summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-30 19:11:11 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-30 19:11:11 +0000
commit73b8dbdd9409f6e2bff76b67c16a9ad1e8333a29 (patch)
tree272300fa0b32d8d4417b8ae1ecc58820924334b4
parentdd4ad3d2addc2bde8d0d37a1cf6bc77359a64b13 (diff)
downloadbcm5719-llvm-73b8dbdd9409f6e2bff76b67c16a9ad1e8333a29.tar.gz
bcm5719-llvm-73b8dbdd9409f6e2bff76b67c16a9ad1e8333a29.zip
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
-rw-r--r--llvm/include/llvm/CodeGen/MachineBasicBlock.h6
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp8
2 files changed, 6 insertions, 8 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineBasicBlock.h b/llvm/include/llvm/CodeGen/MachineBasicBlock.h
index 6333f55bc21..04eba064bcf 100644
--- a/llvm/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/llvm/include/llvm/CodeGen/MachineBasicBlock.h
@@ -46,9 +46,9 @@ private:
public:
void addNodeToList(MachineInstr *N);
void removeNodeFromList(MachineInstr *N);
- template <class Iterator>
- void transferNodesFromList(ilist_traits &OldList, Iterator First,
- Iterator Last);
+ void transferNodesFromList(ilist_traits &OldList,
+ simple_ilist<MachineInstr>::iterator First,
+ simple_ilist<MachineInstr>::iterator Last);
void deleteNode(MachineInstr *MI);
// Leave out createNode...
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index 1788d7ca952..d50f4e7763a 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -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
/// update the parent pointers and the use/def lists.
-template <>
-void ilist_traits<MachineInstr>::transferNodesFromList<
- ilist<MachineInstr>::iterator>(ilist_traits<MachineInstr> &FromList,
- ilist<MachineInstr>::iterator First,
- ilist<MachineInstr>::iterator Last) {
+void ilist_traits<MachineInstr>::transferNodesFromList(
+ ilist_traits &FromList, simple_ilist<MachineInstr>::iterator First,
+ simple_ilist<MachineInstr>::iterator Last) {
assert(Parent->getParent() == FromList.Parent->getParent() &&
"MachineInstr parent mismatch!");
assert(this != &FromList && "Called without a real transfer...");
OpenPOWER on IntegriCloud