Skip to content

Commit 84c991e

Browse files
committed
De-duplicate and move adjust_nan to InterpCx
1 parent 2a57557 commit 84c991e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/operator.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,4 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
115115
nan
116116
}
117117
}
118-
119-
fn adjust_nan<F1: Float + FloatConvert<F2>, F2: Float>(&self, f: F2, inputs: &[F1]) -> F2 {
120-
if f.is_nan() { self.generate_nan(inputs) } else { f }
121-
}
122118
}

0 commit comments

Comments
 (0)