mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: change way how a SILInstruction is marked as deleted
Instead of setting the parent pointer to null, set the `lastInitializedBitfieldID` to -1. This allows to keep the parent block information, even when an instruction is removed from it's list.
This commit is contained in:
@@ -21,13 +21,13 @@ class BasicBlockBitfield;
|
||||
|
||||
struct SILFunction {
|
||||
BasicBlockBitfield *newestAliveBlockBitfield = nullptr;
|
||||
uint64_t currentBitfieldID = 1;
|
||||
int64_t currentBitfieldID = 1;
|
||||
};
|
||||
|
||||
struct SILBasicBlock {
|
||||
SILFunction *function;
|
||||
uint32_t customBits = 0;
|
||||
uint64_t lastInitializedBitfieldID = 0;
|
||||
int64_t lastInitializedBitfieldID = 0;
|
||||
|
||||
enum { numCustomBits = 32 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user