Just get the value directly and store it in another global variable

// global
x := &Foo{}
This commit is contained in:
gingerBill
2022-09-14 17:50:31 +01:00
parent 53c7cf895c
commit 190c3ab0cd
3 changed files with 33 additions and 8 deletions
+1
View File
@@ -395,6 +395,7 @@ lbContextData *lb_push_context_onto_stack_from_implicit_parameter(lbProcedure *p
lbAddr lb_add_global_generated(lbModule *m, Type *type, lbValue value={}, Entity **entity_=nullptr);
lbAddr lb_add_local(lbProcedure *p, Type *type, Entity *e=nullptr, bool zero_init=true, i32 param_index=0, bool force_no_init=false);
LLVMValueRef lb_make_global_truly_private(lbAddr const &addr);
void lb_add_foreign_library_path(lbModule *m, Entity *e);