[semantic-arc] Change SILGen to only use copy_value, destroy_value.

rdar://28851920
This commit is contained in:
Michael Gottesman
2016-10-26 13:36:38 -07:00
parent 5b2cf29346
commit 9507093b17
10 changed files with 25 additions and 24 deletions

View File

@@ -657,7 +657,7 @@ MaterializeForSetEmitter::createAddressorCallback(SILFunction &F,
case AddressorKind::Owning:
case AddressorKind::NativeOwning:
gen.B.createStrongRelease(loc, owner, Atomicity::Atomic);
gen.B.createDestroyValue(loc, owner);
break;
case AddressorKind::NativePinning: