summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacques Pienaar <jpienaar@google.com>2020-01-02 12:27:09 -0800
committerJacques Pienaar <jpienaar@google.com>2020-01-02 12:30:53 -0800
commit98a88c1beec5beff03aa416803c14ae8800322ad (patch)
treed531f4f65529a61d936c33ac4849b2d5f0968bc3
parent6962eea2c3a232e9918c1a3a0e459023f2116cf2 (diff)
downloadbcm5719-llvm-98a88c1beec5beff03aa416803c14ae8800322ad.tar.gz
bcm5719-llvm-98a88c1beec5beff03aa416803c14ae8800322ad.zip
[mlir] Add parenthesis to avoid -Wparentheses
-rw-r--r--mlir/include/mlir/IR/UseDefLists.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/include/mlir/IR/UseDefLists.h b/mlir/include/mlir/IR/UseDefLists.h
index 24fb311156c..0c4ca39b884 100644
--- a/mlir/include/mlir/IR/UseDefLists.h
+++ b/mlir/include/mlir/IR/UseDefLists.h
@@ -47,8 +47,8 @@ public:
/// the IR that uses 'this' to use the other value instead. When this returns
/// there are zero uses of 'this'.
void replaceAllUsesWith(typename OperandType::ValueType newValue) {
- assert(!newValue || this != OperandType::getUseList(newValue) &&
- "cannot RAUW a value with itself");
+ assert((!newValue || this != OperandType::getUseList(newValue)) &&
+ "cannot RAUW a value with itself");
while (!use_empty())
use_begin()->set(newValue);
}
@@ -126,8 +126,8 @@ public:
void replaceAllUsesWith(ValueType oldValue, ValueType newValue) {
assert(this == OperandType::getUseList(oldValue) &&
"value not attached to this use list");
- assert(!newValue || this != OperandType::getUseList(newValue) &&
- "cannot RAUW a value with itself");
+ assert((!newValue || this != OperandType::getUseList(newValue)) &&
+ "cannot RAUW a value with itself");
for (OperandType &use : llvm::make_early_inc_range(getUses(oldValue)))
use.set(newValue);
}
OpenPOWER on IntegriCloud