about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatti Niemenmaa <matti.niemenmaa+git@iki.fi>2017-12-20 14:54:50 +0200
committerMatti Niemenmaa <matti.niemenmaa+git@iki.fi>2017-12-20 15:37:17 +0200
commit8dfc47a4c9728ae7edcfb6a51515af00db994641 (patch)
tree7a9143e43fce7bc93e5788a74f779ea504494106 /src/rustllvm/RustWrapper.cpp
parent16212b93677eae6951974676b174247e6ad0ba48 (diff)
downloadrust-8dfc47a4c9728ae7edcfb6a51515af00db994641.tar.gz
rust-8dfc47a4c9728ae7edcfb6a51515af00db994641.zip
MIR: terminate unreachable blocks in construct_const
Fixes #46843.

#45821 added unreachable blocks in matches, which were terminated in
construct_fn but not in construct_const, causing a panic due to "no
terminator on block" when constants involved matching on enums.

The "unimplemented expression type" error may go away in the future, the
key is that we see the E0015 about using a non-const function and then
don't ICE.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions