[PECOFF] Fix off-by-one error in .def file parser.

I'm fixing another bug in the parser, and I wanted to submit this
fix as a separate change as it's logically independent from the other.
I'll add a test for this shortly.

llvm-svn: 207294
This commit is contained in:
Rui Ueyama 2014-04-25 23:59:27 +00:00
parent 28432c24e9
commit 637300ea4e
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ Token Lexer::lex() {
_buffer = "";
} else {
ret = Token(Kind::identifier, _buffer.substr(1, end - 1));
_buffer = _buffer.drop_front(end);
_buffer = _buffer.drop_front(end + 1);
}
return ret;
}