Commit 98a88c1b authored by Jacques Pienaar's avatar Jacques Pienaar
Browse files

[mlir] Add parenthesis to avoid -Wparentheses

parent 6962eea2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ 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) &&
    assert((!newValue || this != OperandType::getUseList(newValue)) &&
           "cannot RAUW a value with itself");
    while (!use_empty())
      use_begin()->set(newValue);
@@ -126,7 +126,7 @@ 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) &&
    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);