about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-09-23 23:37:15 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-09-23 23:37:15 +0200
commit2c7f21c524414ba91ee37795853bdbb0b9779f75 (patch)
treed0742cc4d2bf0aa769cc969968b05b4b2c9f71e2 /src/comp
parent572a4b71d5a906ab25a30025fc87529f123ee020 (diff)
downloadrust-2c7f21c524414ba91ee37795853bdbb0b9779f75.tar.gz
rust-2c7f21c524414ba91ee37795853bdbb0b9779f75.zip
Properly mark unreachable alt bodies as unreachable
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/trans_alt.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/middle/trans_alt.rs b/src/comp/middle/trans_alt.rs
index 89ae84a5e84..dcf1c5149c1 100644
--- a/src/comp/middle/trans_alt.rs
+++ b/src/comp/middle/trans_alt.rs
@@ -512,6 +512,8 @@ fn make_phi_bindings(bcx: @block_ctxt, map: [exit_node],
                 bcx.fcx.lllocals.insert(node_id, alloc);
             }
         }
+    } else {
+        Unreachable(bcx);
     }
     ret success;
 }