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:
Erik Eckstein
2022-12-02 22:01:19 +01:00
parent d8c2e8ae77
commit 05a63c70c5
9 changed files with 20 additions and 17 deletions

View File

@@ -85,7 +85,7 @@ private:
/// DD and EEE are uninitialized
///
/// See also: SILBitfield::bitfieldID, SILFunction::currentBitfieldID.
uint64_t lastInitializedBitfieldID = 0;
int64_t lastInitializedBitfieldID = 0;
// Used by `BasicBlockBitfield`.
unsigned getCustomBits() const { return customBits; }