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

@@ -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;
}
}