summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h
index 04ad6d2c791..990ea21051b 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.h
+++ b/llvm/utils/TableGen/CodeGenInstruction.h
@@ -65,7 +65,9 @@ template <typename T> class ArrayRef;
return false;
return true;
}
- bool operator!=(const ConstraintInfo &RHS) const { return *this != RHS; }
+ bool operator!=(const ConstraintInfo &RHS) const {
+ return !(*this == RHS);
+ }
};
/// OperandInfo - The information we keep track of for each operand in the
OpenPOWER on IntegriCloud