summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/Analysis/ValueLattice.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Analysis/ValueLattice.h b/llvm/include/llvm/Analysis/ValueLattice.h
index 18a43aafa8c..fb1f6c66297 100644
--- a/llvm/include/llvm/Analysis/ValueLattice.h
+++ b/llvm/include/llvm/Analysis/ValueLattice.h
@@ -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
OpenPOWER on IntegriCloud