Skip to content

Commit

Permalink
Replace newly introduced Atomicity::Atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
mtake committed Feb 27, 2017
1 parent 488d531 commit 91b8db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SILOptimizer/Transforms/OwnershipModelEliminator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ bool OwnershipModelEliminatorVisitor::visitCopyValueInst(CopyValueInst *CVI) {
bool OwnershipModelEliminatorVisitor::visitCopyUnownedValueInst(
CopyUnownedValueInst *CVI) {
B.createStrongRetainUnowned(CVI->getLoc(), CVI->getOperand(),
Atomicity::Atomic);
B.getDefaultAtomicity());
// Users of copy_value_unowned expect an owned value. So we need to convert
// our unowned value to a ref.
auto *UTRI =
Expand Down

0 comments on commit 91b8db5

Please sign in to comment.