mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add [nonatomic] attribute to all SIL reference counting instructions.
This commit is contained in:
@@ -2267,7 +2267,7 @@ void SILGenFunction::emitSwitchStmt(SwitchStmt *S) {
|
||||
for (auto cmv : argArray) {
|
||||
if (cmv.getValue() == value) {
|
||||
if (cmv.hasCleanup())
|
||||
B.createRetainValue(CurrentSILLoc, value);
|
||||
B.createRetainValue(CurrentSILLoc, value, Atomicity::Atomic);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user