File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,7 @@ public ilist_default_traits<::swift::SILBasicBlock> {
327
327
friend class ::swift::SILFunction;
328
328
329
329
SILFunction *Parent;
330
+ using block_iterator = simple_ilist<SILBasicBlock>::iterator;
330
331
331
332
public:
332
333
@@ -336,8 +337,7 @@ public ilist_default_traits<::swift::SILBasicBlock> {
336
337
}
337
338
338
339
void transferNodesFromList (ilist_traits<SILBasicBlock> &SrcTraits,
339
- ilist_iterator<SILBasicBlock> First,
340
- ilist_iterator<SILBasicBlock> Last);
340
+ block_iterator First, block_iterator Last);
341
341
342
342
private:
343
343
static void createNode (const SILBasicBlock &);
Original file line number Diff line number Diff line change @@ -5439,6 +5439,8 @@ struct ilist_traits<::swift::SILInstruction> :
5439
5439
private:
5440
5440
swift::SILBasicBlock *getContainingBlock ();
5441
5441
5442
+ using instr_iterator = simple_ilist<SILInstruction>::iterator;
5443
+
5442
5444
public:
5443
5445
static void deleteNode (SILInstruction *V) {
5444
5446
SILInstruction::destroy (V);
@@ -5447,8 +5449,7 @@ struct ilist_traits<::swift::SILInstruction> :
5447
5449
void addNodeToList (SILInstruction *I);
5448
5450
void removeNodeFromList (SILInstruction *I);
5449
5451
void transferNodesFromList (ilist_traits<SILInstruction> &L2,
5450
- ilist_iterator<SILInstruction> first,
5451
- ilist_iterator<SILInstruction> last);
5452
+ instr_iterator first, instr_iterator last);
5452
5453
5453
5454
private:
5454
5455
void createNode (const SILInstruction &);
Original file line number Diff line number Diff line change 20
20
#include " IRGen.h"
21
21
#include " llvm/IR/Value.h"
22
22
#include " llvm/IR/Argument.h"
23
+ #include " llvm/IR/Function.h"
23
24
#include " llvm/IR/Instruction.h"
24
25
#include " llvm/ADT/ilist.h"
25
26
#include " llvm/IR/DerivedTypes.h"
Original file line number Diff line number Diff line change @@ -171,8 +171,7 @@ void SILBasicBlock::moveAfter(SILBasicBlock *After) {
171
171
void
172
172
llvm::ilist_traits<swift::SILBasicBlock>::
173
173
transferNodesFromList (llvm::ilist_traits<SILBasicBlock> &SrcTraits,
174
- llvm::ilist_iterator<SILBasicBlock> First,
175
- llvm::ilist_iterator<SILBasicBlock> Last) {
174
+ block_iterator First, block_iterator Last) {
176
175
assert (&Parent->getModule () == &SrcTraits.Parent ->getModule () &&
177
176
" Module mismatch!" );
178
177
Original file line number Diff line number Diff line change @@ -79,8 +79,7 @@ void llvm::ilist_traits<SILInstruction>::removeNodeFromList(SILInstruction *I) {
79
79
80
80
void llvm::ilist_traits<SILInstruction>::
81
81
transferNodesFromList (llvm::ilist_traits<SILInstruction> &L2,
82
- llvm::ilist_iterator<SILInstruction> first,
83
- llvm::ilist_iterator<SILInstruction> last) {
82
+ instr_iterator first, instr_iterator last) {
84
83
// If transferring instructions within the same basic block, no reason to
85
84
// update their parent pointers.
86
85
SILBasicBlock *ThisParent = getContainingBlock ();
You can’t perform that action at this time.
0 commit comments