diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2018-06-26 21:59:43 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2018-07-04 14:36:07 -0700 |
| commit | b3b04b8cc6fb66b89613b4b636182b5de53a0601 (patch) | |
| tree | c0d8c27d2099e210a6f487ce63e0cb2051247139 /src/rustllvm/RustWrapper.cpp | |
| parent | 647ba29b90155e07cf569060d344242b3ee474eb (diff) | |
| download | rust-b3b04b8cc6fb66b89613b4b636182b5de53a0601.tar.gz rust-b3b04b8cc6fb66b89613b4b636182b5de53a0601.zip | |
Avoid overflow in step counter
This removes the `usize` argument to `inc_step_counter`. Now, the step counter increments by exactly one for every terminator evaluated. After `STEPS_UNTIL_DETECTOR_ENABLED` steps elapse, the detector is run every `DETECTOR_SNAPSHOT_PERIOD` steps. The step counter is only kept modulo this period.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
