mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #2067 from swiftix/SR-249
Add [nonatomic] attribute to all SIL reference counting instructions. Support this attribute at SIL level, IRGen and LLVM-based ARC passes.
This commit is contained in:
@@ -135,9 +135,10 @@ static FullApplySite speculateMonomorphicTarget(FullApplySite AI,
|
||||
if (auto *Release =
|
||||
dyn_cast<StrongReleaseInst>(std::next(Continue->begin()))) {
|
||||
if (Release->getOperand() == CMI->getOperand()) {
|
||||
VirtBuilder.createStrongRelease(Release->getLoc(), CMI->getOperand());
|
||||
IdenBuilder.createStrongRelease(Release->getLoc(),
|
||||
DownCastedClassInstance);
|
||||
VirtBuilder.createStrongRelease(Release->getLoc(), CMI->getOperand(),
|
||||
Atomicity::Atomic);
|
||||
IdenBuilder.createStrongRelease(
|
||||
Release->getLoc(), DownCastedClassInstance, Atomicity::Atomic);
|
||||
Release->eraseFromParent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user