forked from OSchip/llvm-project
[ValueLattice] Use getters instead of direct accesses (NFC).
Reviewers: reames, davide, anna Reviewed By: reames, davide Differential Revision: https://reviews.llvm.org/D42270 llvm-svn: 322933
This commit is contained in:
parent
df26cf8117
commit
5045eaf9b9
|
@ -189,14 +189,14 @@ public:
|
|||
}
|
||||
|
||||
if (isConstant()) {
|
||||
if (RHS.isConstant() && Val == RHS.Val)
|
||||
if (RHS.isConstant() && getConstant() == RHS.getConstant())
|
||||
return false;
|
||||
markOverdefined();
|
||||
return true;
|
||||
}
|
||||
|
||||
if (isNotConstant()) {
|
||||
if (RHS.isNotConstant() && Val == RHS.Val)
|
||||
if (RHS.isNotConstant() && getNotConstant() == RHS.getNotConstant())
|
||||
return false;
|
||||
markOverdefined();
|
||||
return true;
|
||||
|
@ -209,7 +209,7 @@ public:
|
|||
markOverdefined();
|
||||
return true;
|
||||
}
|
||||
ConstantRange NewR = Range.unionWith(RHS.getConstantRange());
|
||||
ConstantRange NewR = getConstantRange().unionWith(RHS.getConstantRange());
|
||||
if (NewR.isFullSet())
|
||||
markOverdefined();
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue