forked from OSchip/llvm-project
[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:
parent
28432c24e9
commit
637300ea4e
|
@ -44,7 +44,7 @@ Token Lexer::lex() {
|
||||||
_buffer = "";
|
_buffer = "";
|
||||||
} else {
|
} else {
|
||||||
ret = Token(Kind::identifier, _buffer.substr(1, end - 1));
|
ret = Token(Kind::identifier, _buffer.substr(1, end - 1));
|
||||||
_buffer = _buffer.drop_front(end);
|
_buffer = _buffer.drop_front(end + 1);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue