]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #22527 - dotdash:if-loop, r=huonw
authorManish Goregaokar <manishsmail@gmail.com>
Sat, 21 Feb 2015 20:17:28 +0000 (01:47 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Sat, 21 Feb 2015 20:17:28 +0000 (01:47 +0530)
 In `if loop {} {}`, the `if` is actually unreachable, but we didn't
handle that correctly and when trying to translate the `if` we tried to
branch on the \"return value\" of the loop expression, which is not an
`i1` and therefore triggered an LLVM assertion.

1  2 
src/librustc_trans/trans/controlflow.rs