Fix cstring to string conversion
This commit is contained in:
1 parent
c6bffd7c35
commit
45d3c6c0d3
1 file changed
+1
-1
+1
-1
@@ -3282,7 +3282,7 @@ irValue *ir_emit_conv(irProcedure *proc, irValue *value, Type *t) {
|
|||||||
return ir_emit_bitcast(proc, value, dst);
|
return ir_emit_bitcast(proc, value, dst);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (src == t_cstring && dst == t_string) {
|
if (are_types_identical(src, t_cstring) && are_types_identical(dst, t_string)) {
|
||||||
irValue *c = ir_emit_conv(proc, value, t_cstring);
|
irValue *c = ir_emit_conv(proc, value, t_cstring);
|
||||||
auto args = array_make<irValue *>(ir_allocator(), 1);
|
auto args = array_make<irValue *>(ir_allocator(), 1);
|
||||||
args[0] = c;
|
args[0] = c;
|
||||||
|
|||||||
Reference in new issue
Block a user