This commit is contained in:
Folkert 2022-03-13 00:12:57 +01:00
parent 8488390a9b
commit ec403958a3
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -247,20 +247,6 @@ pub fn str_trim<'a, 'ctx, 'env>(
) -> BasicValueEnum<'ctx> {
let str_i128 = str_symbol_to_c_abi(env, scope, str_symbol);
/*
let parent = env
.builder
.get_insert_block()
.and_then(|b| b.get_parent())
.unwrap();
let str_type = super::convert::zig_str_type(env);
let string_alloca = create_entry_block_alloca(env, parent, str_type.into(), "str_alloca");
let string = load_symbol(scope, &str_symbol);
env.builder.build_store(string_alloca, string);
*/
call_str_bitcode_fn(env, &[str_i128.into()], bitcode::STR_TRIM)
}