diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-05-09 12:55:13 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-05-13 17:16:03 +1000 |
| commit | 548067e00f64861915d2374082adc7796c73ceb8 (patch) | |
| tree | 5a602342e1e7b293b5749cb2a716e2c2e3d396ca /src/rustllvm/RustWrapper.cpp | |
| parent | 7a090fbe02b6b20f0dce8acf07a0328375f91d68 (diff) | |
| download | rust-548067e00f64861915d2374082adc7796c73ceb8.tar.gz rust-548067e00f64861915d2374082adc7796c73ceb8.zip | |
Remove `StringReader::terminator`.
It's silly for a hot function like `bump()` to have such an expensive bounds check. This patch replaces terminator with `end_src_index`. Note that the `self.terminator` check in `is_eof()` wasn't necessary because of the way `StringReader` is initialized.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
