Merge pull request #6716 from gottesmm/eliminate_deallocating_convention

This commit is contained in:
swift-ci
2017-01-10 20:02:51 -08:00
committed by GitHub
29 changed files with 12 additions and 115 deletions

View File

@@ -88,11 +88,6 @@ public:
ManagedValue getManagedValue(SILValue arg, CanType t,
SILParameterInfo parameterInfo) const {
switch (parameterInfo.getConvention()) {
case ParameterConvention::Direct_Deallocating:
// If we have a deallocating parameter, it is passed in at +0 and will not
// be deallocated since we do not allow for resurrection.
return ManagedValue::forUnmanaged(arg);
case ParameterConvention::Direct_Guaranteed:
case ParameterConvention::Indirect_In_Guaranteed:
// If we have a guaranteed parameter, it is passed in at +0, and its