Skip to content

Commit 49e65a0

Browse files
committed
Remove commented code
1 parent c7c1622 commit 49e65a0

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/common.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -234,19 +234,6 @@ impl<'gcc, 'tcx> ConstCodegenMethods for CodegenCx<'gcc, 'tcx> {
234234
match cv {
235235
Scalar::Int(int) => {
236236
let data = int.to_bits(layout.size(self));
237-
238-
// FIXME(antoyo): there's some issues with using the u128 code that follows, so hard-code
239-
// the paths for floating-point values.
240-
// TODO: Remove this code?
241-
/*if ty == self.float_type {
242-
return self
243-
.context
244-
.new_rvalue_from_double(ty, f32::from_bits(data as u32) as f64);
245-
}
246-
if ty == self.double_type {
247-
return self.context.new_rvalue_from_double(ty, f64::from_bits(data as u64));
248-
}*/
249-
250237
let value = self.const_uint_big(self.type_ix(bitsize), data);
251238
let bytesize = layout.size(self).bytes();
252239
if bitsize > 1 && ty.is_integral() && bytesize as u32 == ty.get_size() {

0 commit comments

Comments
 (0)