From 28b50c00c00b5d159d3ec891789dd76cbf958b47 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Tue, 10 Mar 2020 02:46:51 -0400 Subject: [PATCH] Clean up some comments --- compiler/gen/src/llvm/build.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compiler/gen/src/llvm/build.rs b/compiler/gen/src/llvm/build.rs index 5adb87e925..038ae3a669 100644 --- a/compiler/gen/src/llvm/build.rs +++ b/compiler/gen/src/llvm/build.rs @@ -613,12 +613,13 @@ fn call_with_args<'a, 'ctx, 'env>( Symbol::LIST_LEN => { debug_assert!(args.len() == 1); - let tuple_struct = dbg!(args[0].into_struct_value()); + let tuple_struct = args[0].into_struct_value(); let builder = env.builder; - // Get the 32-bit int length and cast it to a 64-bit int - let i32_val = dbg!(builder.build_extract_value(tuple_struct, 1, "unwrapped_list_len").unwrap().into_int_value()); + // Get the 32-bit int length + let i32_val = builder.build_extract_value(tuple_struct, 1, "unwrapped_list_len").unwrap().into_int_value(); + // cast the 32-bit length to a 64-bit int BasicValueEnum::IntValue(builder.build_int_cast(i32_val, env.context.i64_type(), "i32_to_i64")) } Symbol::LIST_IS_EMPTY => {