diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-04-01 22:07:37 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-04-03 20:28:59 -0700 |
| commit | 1b6997d0692e743066dfc40e7ab4b65f8ed2e7fd (patch) | |
| tree | 85342621e7062b6aa347dd1fbd3487af89af9b74 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 3961957bd61b7f9ab350c0a6621a1ad18716c332 (diff) | |
| download | rust-1b6997d0692e743066dfc40e7ab4b65f8ed2e7fd.tar.gz rust-1b6997d0692e743066dfc40e7ab4b65f8ed2e7fd.zip | |
test: avoid infinite loop in out-of-stack.rs
This fixes #13238. It avoids an infinite loop when compiling the tests with `-g`. Without this change, the debuginfo on `black_box` prevents the method from being inlined, which allows llvm to convert `silent_recurse` into a tail-call. This then loops forever instead of consuming all the stack like it is supposed to. This patch forces inlining `black_box`, which triggers the right error.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
