about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2014-03-27 07:54:41 -0400
committerCorey Richardson <corey@octayn.net>2014-03-27 08:10:47 -0400
commit5258e13d0b5ed1fb201579115d618728ab0b69c0 (patch)
treec817e4a4962baf23df3ad33ec34063dd5da6212a /src/rustllvm/RustWrapper.cpp
parentb8ed13686ad1f883f3de1e7fa5ba5bf9f92ae5d2 (diff)
downloadrust-5258e13d0b5ed1fb201579115d618728ab0b69c0.tar.gz
rust-5258e13d0b5ed1fb201579115d618728ab0b69c0.zip
test/run-pass/out-of-stack: prevent tco
We really do *not* want TCO to kick in. If it does, we'll never blow the
stack, and never trigger the condition the test is checking for. To that end,
do a meaningless alloc that serves only to get a destructor to run. The
addition of nocapture/noalias seems to have let LLVM do more TCO, which
hurt this testcase.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions