mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: remove instruction leaks checking
It's not thread safe and can cause false alarms in case multiple modules exist in different threads. E.g. when building swiftmodules from interfaces. The leaking check is not important anymore because the builder APIs enforce that instructions are not leaking. I.e. it's not possible to create an instruction without inserting it into a basic block. Also, it's not possible to remove an instruction from a block without deleting it. rdar://122169263
This commit is contained in:
@@ -939,19 +939,6 @@ public:
|
||||
/// Check linear OSSA lifetimes, assuming complete OSSA.
|
||||
void verifyOwnership() const;
|
||||
|
||||
/// Check if there are any leaking instructions.
|
||||
///
|
||||
/// Aborts with an error if more instructions are allocated than contained in
|
||||
/// the module.
|
||||
void checkForLeaks() const;
|
||||
|
||||
/// Check if there are any leaking instructions after the SILModule is
|
||||
/// destructed.
|
||||
///
|
||||
/// The SILModule destructor already calls checkForLeaks(). This function is
|
||||
/// useful to check if the destructor itself destroys all data structures.
|
||||
static void checkForLeaksAfterDestruction();
|
||||
|
||||
/// Pretty-print the module.
|
||||
void dump(bool Verbose = false) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user