Skip to content

Commit

Permalink
[loop-arc] Create a simple SuccessorID::operator!=() operator.
Browse files Browse the repository at this point in the history
Swift SVN r32760
  • Loading branch information
gottesmm committed Oct 19, 2015
1 parent 4f2fb63 commit 06f6d79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/swift/SILAnalysis/LoopRegionAnalysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ class LoopRegion {
return ID == Other.ID && IsNonLocal == Other.IsNonLocal &&
IsDead == Other.IsDead;
}
bool operator!=(const SuccessorID &Other) const {
return !(*this == Other);
}

struct ToLiveSucc {
Optional<SuccessorID> operator()(SuccessorID ID) const {
Expand Down

0 comments on commit 06f6d79

Please sign in to comment.