mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user