diff options
Diffstat (limited to 'include/llvm/TableGen/StringToOffsetTable.h')
-rw-r--r-- | include/llvm/TableGen/StringToOffsetTable.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/TableGen/StringToOffsetTable.h b/include/llvm/TableGen/StringToOffsetTable.h index e5b61ed1195e..aaf2a356ffab 100644 --- a/include/llvm/TableGen/StringToOffsetTable.h +++ b/include/llvm/TableGen/StringToOffsetTable.h @@ -60,10 +60,10 @@ public: if (AggregateString[i] != '\\') continue; - assert(i+1 < AggregateString.size() && "Incomplete escape sequence!"); - if (isdigit(AggregateString[i+1])) { - assert(isdigit(AggregateString[i+2]) && - isdigit(AggregateString[i+3]) && + assert(i + 1 < AggregateString.size() && "Incomplete escape sequence!"); + if (isdigit(AggregateString[i + 1])) { + assert(isdigit(AggregateString[i + 2]) && + isdigit(AggregateString[i + 3]) && "Expected 3 digit octal escape!"); O << AggregateString[++i]; O << AggregateString[++i]; |