mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Enhance -assume-single-threaded option (SR-3945)
This commit is contained in:
@@ -161,7 +161,8 @@ bool ReleaseDevirtualizer::createDeallocCall(SILType AllocType,
|
||||
|
||||
// Do what a release would do before calling the deallocator: set the object
|
||||
// in deallocating state, which means set the RC_DEALLOCATING_FLAG flag.
|
||||
B.createSetDeallocating(ReleaseInst->getLoc(), object, Atomicity::Atomic);
|
||||
B.createSetDeallocating(ReleaseInst->getLoc(), object,
|
||||
cast<RefCountingInst>(ReleaseInst)->getAtomicity());
|
||||
|
||||
// Create the call to the destructor with the allocated object as self
|
||||
// argument.
|
||||
|
||||
Reference in New Issue
Block a user