Add [nonatomic] attribute to all SIL reference counting instructions.

This commit is contained in:
Roman Levenstein
2016-04-05 11:21:34 -07:00
parent ab8253cfde
commit 2e77b3990b
33 changed files with 441 additions and 206 deletions

View File

@@ -219,7 +219,7 @@ 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);
B.createSetDeallocating(ReleaseInst->getLoc(), object, Atomicity::Atomic);
// Create the call to the destructor with the allocated object as self
// argument.