diff options
author | Tim Northover <tnorthover@apple.com> | 2014-05-13 09:37:41 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-05-13 09:37:41 +0000 |
commit | e9592d0838c51966ad19bc0cb9846acd440bc4c3 (patch) | |
tree | c97f93cd9d143146b9bd725c57d9a140e3f0a074 /utils | |
parent | ae0a8337f290bf734cb7287d150c43dbfd2be1c7 (diff) |
TableGen: strengthen assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/AsmWriterEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index 222faa93d96..7165effa863 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -642,7 +642,7 @@ public: void addOperand(StringRef Op, int OpIdx, int PrintMethodIdx = -1) { assert(OpIdx >= 0 && OpIdx < 0xFE && "Idx out of range"); - assert((PrintMethodIdx == -1 || PrintMethodIdx < 0xFF) && + assert(PrintMethodIdx >= -1 && PrintMethodIdx < 0xFF && "Idx out of range"); OpMap[Op] = std::make_pair(OpIdx, PrintMethodIdx); } |