[llvm] r322933 - [ValueLattice] Use getters instead of direct accesses (NFC).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 02:32:48 PST 2018


Author: fhahn
Date: Fri Jan 19 02:32:48 2018
New Revision: 322933

URL: http://llvm.org/viewvc/llvm-project?rev=322933&view=rev
Log:
[ValueLattice] Use getters instead of direct accesses (NFC).

Reviewers: reames, davide, anna

Reviewed By: reames, davide

Differential Revision: https://reviews.llvm.org/D42270

Modified:
    llvm/trunk/include/llvm/Analysis/ValueLattice.h

Modified: llvm/trunk/include/llvm/Analysis/ValueLattice.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ValueLattice.h?rev=322933&r1=322932&r2=322933&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/ValueLattice.h (original)
+++ llvm/trunk/include/llvm/Analysis/ValueLattice.h Fri Jan 19 02:32:48 2018
@@ -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




More information about the llvm-commits mailing list