Revert "ArraySemantic: Add isMayRelease method"

This reverts commit r25925.

We cannot assume that these functions are not mayRelease because they call
Objective C functions which we must assume to be mayRelase.

Swift SVN r26107
This commit is contained in:
Arnold Schwaighofer
2015-03-13 18:55:05 +00:00
parent 7b9917bd21
commit 513df867cf
2 changed files with 0 additions and 18 deletions

View File

@@ -442,15 +442,3 @@ SILValue swift::ArraySemanticsCall::getArrayPropertyNeedsTypeCheck() {
return SemanticsCall->getArgument(ArgIdx);
}
bool swift::ArraySemanticsCall::isMayRelease() {
auto Kind = getKind();
if (Kind == ArrayCallKind::kNone)
return true;
if (Kind <= ArrayCallKind::kGetElementAddress)
return getSelfParameterConvention(SemanticsCall) !=
ParameterConvention::Direct_Guaranteed;
return true;
}