[llvm] 8a48c4a - Fix boolean/bitwise operator precedence warnings. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 15 06:02:06 PST 2020
Author: Simon Pilgrim
Date: 2020-02-15T13:53:18Z
New Revision: 8a48c4a97c416825835496fed3c2482b42e52c61
URL: https://github.com/llvm/llvm-project/commit/8a48c4a97c416825835496fed3c2482b42e52c61
DIFF: https://github.com/llvm/llvm-project/commit/8a48c4a97c416825835496fed3c2482b42e52c61.diff
LOG: Fix boolean/bitwise operator precedence warnings. NFCI.
Added:
Modified:
llvm/lib/Transforms/IPO/Attributor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index 2bbe220ce329..5ebe00767a02 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/lib/Transforms/IPO/Attributor.cpp
@@ -6256,7 +6256,7 @@ struct AAMemoryLocationImpl : public AAMemoryLocation {
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)
More information about the llvm-commits
mailing list