about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-06 11:58:32 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-03-06 12:01:23 -0800
commit946a3963f3cf3f6f4334e89793af77a4da163dc7 (patch)
tree7bac25f57f28d042a9001d695a4ef5ef6a67085f /src/rustllvm/ExecutionEngineWrapper.cpp
parent1fe8f221450bad3ffb1351c6549f67c18ce0b94e (diff)
downloadrust-946a3963f3cf3f6f4334e89793af77a4da163dc7.tar.gz
rust-946a3963f3cf3f6f4334e89793af77a4da163dc7.zip
test: Fix an overflow on empty benchmarks
Right now the rust upgrade in cargo is blocked on fixing this overflow. If a
this benchmark is run it will trigger an overflow error today:

    #[bench]
    fn foo(b: &mut test::Bencher) {}

This commit adds a check on each iteration of the loop that the maximum
multiplier (10) doesn't overflow, and if it does just return the results so far.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions