Fix boolean/bitwise operator precedence warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 15 Feb 2020 13:53:18 +0000 (13:53 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 15 Feb 2020 13:53:18 +0000 (13:53 +0000)
llvm/lib/Transforms/IPO/Attributor.cpp

index 2bbe220..5ebe007 100644 (file)
@@ -6256,7 +6256,7 @@ protected:
     AccessKind Kind;
 
     bool operator==(const AccessInfo &RHS) const {
-      return I == RHS.I & Ptr == RHS.Ptr & Kind == RHS.Kind;
+      return I == RHS.I && Ptr == RHS.Ptr && Kind == RHS.Kind;
     }
     bool operator()(const AccessInfo &LHS, const AccessInfo &RHS) const {
       if (LHS.I != RHS.I)