diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-07-17 03:13:23 -0500 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-07-17 03:13:23 +1000 |
| commit | e252277fe9b44ed9a913aeeb9f55dc85eaadace4 (patch) | |
| tree | f4c5efcf4e52b091b3053fa438d83035c5c06fb8 /src/test/codegen/stack-alloc-string-slice.cc | |
| parent | e4f7561bcdf3b54dafefd478b86e1f7610e74348 (diff) | |
| download | rust-e252277fe9b44ed9a913aeeb9f55dc85eaadace4.tar.gz rust-e252277fe9b44ed9a913aeeb9f55dc85eaadace4.zip | |
rustc: handle allocas and LoadRangeAsserts in unreachable blocks correctly.
An alloca in an unreachable block would shortcircuit with Undef, but with type `Type`, rather than type `*Type` (i.e. a plain value, not a pointer) but it is expected to return a pointer into the stack, leading to confusion and LLVM asserts later. Similarly, attaching the range metadata to a Load in an unreachable block makes LLVM unhappy, since the Load returns Undef. Fixes #7344.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions
