mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: add a utility which can manage per-block bitfields and flags efficiently.
It is very efficient: no memory allocation is needed an initialization is at zero cost.
This commit is contained in:
@@ -309,6 +309,8 @@ transferNodesFromList(llvm::ilist_traits<SILBasicBlock> &SrcTraits,
|
||||
// If splicing blocks not in the same function, update the parent pointers.
|
||||
for (; First != Last; ++First) {
|
||||
First->Parent = Parent;
|
||||
First->index = -1;
|
||||
First->lastInitializedBitfieldID = 0;
|
||||
for (auto &II : *First)
|
||||
II.setDebugScope(ScopeCloner.getOrCreateClonedScope(II.getDebugScope()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user