about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.cc
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-07-17 03:13:23 -0500
committerHuon Wilson <dbau.pp+github@gmail.com>2013-07-17 03:13:23 +1000
commite252277fe9b44ed9a913aeeb9f55dc85eaadace4 (patch)
treef4c5efcf4e52b091b3053fa438d83035c5c06fb8 /src/test/codegen/stack-alloc-string-slice.cc
parente4f7561bcdf3b54dafefd478b86e1f7610e74348 (diff)
downloadrust-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