mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[objcarcopts] Encapsulated PtrState.RRI.IsTrackingImpreciseRelease() => PtrState.IsTrackingImpreciseRelease().
llvm-svn: 184583
This commit is contained in:
parent
930488133d
commit
8f3eacc90e
@ -469,9 +469,6 @@ namespace {
|
||||
/// occured, false otherwise.
|
||||
bool Merge(const RRInfo &Other);
|
||||
|
||||
bool IsTrackingImpreciseReleases() {
|
||||
return ReleaseMetadata != 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@ -547,6 +544,10 @@ namespace {
|
||||
RRI.IsTailCallRelease = NewValue;
|
||||
}
|
||||
|
||||
bool IsTrackingImpreciseReleases() {
|
||||
return RRI.ReleaseMetadata != 0;
|
||||
}
|
||||
|
||||
const MDNode *GetReleaseMetadata() const {
|
||||
return RRI.ReleaseMetadata;
|
||||
}
|
||||
@ -1967,7 +1968,7 @@ ObjCARCOpt::VisitInstructionBottomUp(Instruction *Inst,
|
||||
case S_Use:
|
||||
// If OldSeq is not S_Use or OldSeq is S_Use and we are tracking an
|
||||
// imprecise release, clear our reverse insertion points.
|
||||
if (OldSeq != S_Use || S.RRI.IsTrackingImpreciseReleases())
|
||||
if (OldSeq != S_Use || S.IsTrackingImpreciseReleases())
|
||||
S.RRI.ReverseInsertPts.clear();
|
||||
// FALL THROUGH
|
||||
case S_CanRelease:
|
||||
|
Loading…
Reference in New Issue
Block a user