comptime expandable match statements
This commit is contained in:
@@ -1103,7 +1103,9 @@ emit_instruction_stream :: proc(
|
||||
fmt.sbprintf(
|
||||
&emitter.builder,
|
||||
" %%v%d = getelementptr %s, ptr %%v%d, i64 0\n",
|
||||
instruction_index, llvm_type(child, &emitter.module.types), instruction.a,
|
||||
instruction_index,
|
||||
"i8" if types.is_void(child) else llvm_type(child, &emitter.module.types),
|
||||
instruction.a,
|
||||
)
|
||||
case .Alloca:
|
||||
if !types.is_runtime_value(instruction.type, &emitter.module.types) {
|
||||
|
||||
Reference in New Issue
Block a user