diff options
| author | Haojian Wu <hokein@google.com> | 2018-11-28 12:32:53 +0000 | 
|---|---|---|
| committer | Haojian Wu <hokein@google.com> | 2018-11-28 12:32:53 +0000 | 
| commit | f838e90dcb3386bcc7b7ad9054506d91dc2d4bd1 (patch) | |
| tree | 28647daccd40e7463a26c7656e9cdf9a982e01fb /llvm/utils/TableGen | |
| parent | e85c2592d92f5e37d260d518a02ae7c4f91f228c (diff) | |
| download | bcm5719-llvm-f838e90dcb3386bcc7b7ad9054506d91dc2d4bd1.tar.gz bcm5719-llvm-f838e90dcb3386bcc7b7ad9054506d91dc2d4bd1.zip | |
Fix -Winfinite-recursion compile error.
llvm-svn: 347749
Diffstat (limited to 'llvm/utils/TableGen')
| -rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.h | 4 | 
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 | 

