about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2018-05-09 12:55:13 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2018-05-13 17:16:03 +1000
commit548067e00f64861915d2374082adc7796c73ceb8 (patch)
tree5a602342e1e7b293b5749cb2a716e2c2e3d396ca /src/rustllvm/RustWrapper.cpp
parent7a090fbe02b6b20f0dce8acf07a0328375f91d68 (diff)
downloadrust-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