Fix in byte output for globals.

This commit is contained in:
Christoffer Lerno
2021-08-21 22:16:35 +02:00
parent f198e6c53a
commit 7c7ee58b6b
3 changed files with 22 additions and 11 deletions

View File

@@ -2499,7 +2499,7 @@ static void llvm_emit_const_expr(GenContext *c, BEValue *be_value, Expr *expr)
1));
llvm_set_alignment(global_name, 1);
global_name = LLVMConstBitCast(global_name, LLVMPointerType(llvm_get_type(c, type_char), 0));
llvm_value_set(be_value, global_name, type);
llvm_value_set_address(be_value, global_name, type);
return;
}
case ALL_INTS: