Closed
Description
fn main() {
let mut v = 0;
for i in 0..0 {
v += i;
}
println!("{}", v)
}
Compiling with rustc --emit=asm,link -C opt-level=1
(with 1.1.0-nightly (da623844a 2015-04-25) (built 2015-04-26)
gives:
Instruction does not dominate all uses!
%1 = bitcast %"2.core::fmt::Arguments"* %0 to i64*
%tmpcast = bitcast i64* %1 to %"2.core::ops::Range<i32>"*
LLVM ERROR: Broken function found, compilation aborted!