From e17d9cfbab7378c60026e264f37ad2afd2ad4f52 Mon Sep 17 00:00:00 2001 From: Afonso Bordado Date: Fri, 17 Sep 2021 22:17:54 +0100 Subject: [PATCH] cranelift: Rename `icmp` type variable --- cranelift/interpreter/src/step.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cranelift/interpreter/src/step.rs b/cranelift/interpreter/src/step.rs index 187819aa69..331ebc02be 100644 --- a/cranelift/interpreter/src/step.rs +++ b/cranelift/interpreter/src/step.rs @@ -983,7 +983,7 @@ pub enum CraneliftTrap { } /// Compare two values using the given integer condition `code`. -fn icmp(_ty: types::Type, code: IntCC, left: &V, right: &V) -> ValueResult +fn icmp(ctrl_ty: types::Type, code: IntCC, left: &V, right: &V) -> ValueResult where V: Value, { @@ -1019,9 +1019,9 @@ where )?) }; - let dst_ty = _ty.as_bool(); - Ok(if _ty.is_vector() { - let lane_type = _ty.lane_type(); + let dst_ty = ctrl_ty.as_bool(); + Ok(if ctrl_ty.is_vector() { + let lane_type = ctrl_ty.lane_type(); let left = extractlanes(left, lane_type)?; let right = extractlanes(right, lane_type)?;