]> git.lizzy.rs Git - rust.git/commit
Fix #14865
authorEdward Wang <edward.yu.wang@gmail.com>
Wed, 18 Jun 2014 14:33:58 +0000 (22:33 +0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 19 Jun 2014 00:01:58 +0000 (17:01 -0700)
commitb1df9aa16fe0f801f2f56afdddd6faa0461a3b0e
tree9b76ba2687615b143b57ced16c2a3cc15e00313f
parentbde851e969d327397ac1ab4bca05692069ff62a5
Fix #14865

Fixes a codegen bug which generates illegal non-terminated LLVM block
when there are wildcard pattern with guard and enum patterns in a match
expression. Also refactors the code a little.

Closes #14865
src/librustc/middle/trans/_match.rs
src/test/run-pass/issue-14865.rs [new file with mode: 0644]