From 8a48c4a97c416825835496fed3c2482b42e52c61 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 15 Feb 2020 13:53:18 +0000 Subject: [PATCH] Fix boolean/bitwise operator precedence warnings. NFCI. --- llvm/lib/Transforms/IPO/Attributor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index 2bbe220..5ebe007 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -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) -- 2.7.4