[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:
Florian Hahn 2018-01-19 10:32:48 +00:00
parent df26cf8117
commit 5045eaf9b9
1 changed files with 3 additions and 3 deletions

View File

@ -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