diff --git a/rust_compiler/libs/optimizer/src/constant_propagation.rs b/rust_compiler/libs/optimizer/src/constant_propagation.rs index 8e6d6a0..20e3079 100644 --- a/rust_compiler/libs/optimizer/src/constant_propagation.rs +++ b/rust_compiler/libs/optimizer/src/constant_propagation.rs @@ -39,7 +39,7 @@ pub fn constant_propagation<'a>( }), Instruction::Sra(dst, a, b) => try_fold_bitwise(dst, a, b, ®isters, |x, y| { if y >= 64 { - (if x < 0 { -1 } else { 0 }) + if x < 0 { -1 } else { 0 } } else { x >> y as u32 }