diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-05-05 15:30:21 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-05-05 20:19:43 +0200 |
| commit | 3d738e9e0634a4cd6239d1317bd7dad53be68dc8 (patch) | |
| tree | b3757c980217884882ef803e484540e9806b6d83 /src/rt/rust_task.cpp | |
| parent | 9432626b686782f87e54960a4c019fd7c83ad7f7 (diff) | |
| download | rust-3d738e9e0634a4cd6239d1317bd7dad53be68dc8.tar.gz rust-3d738e9e0634a4cd6239d1317bd7dad53be68dc8.zip | |
Return a fresh, unreachable context after ret, break, and cont
This ensures we don't get compile errors on unreachable code (see test/run-pass/artificial-block.rs for an example of sane code that wasn't compiling). In the future, we might want to warn about non-trivial code appearing in an unreachable context, and/or avoid generating unreachable code altogether (though I'm sure LLVM will weed it out as well).
Diffstat (limited to 'src/rt/rust_task.cpp')
0 files changed, 0 insertions, 0 deletions
