Fix LLVM -opt:2 bug for initializing global variables

This commit is contained in:
gingerBill
2021-02-27 15:54:22 +00:00
parent f49278b5f4
commit 4f298a5314
2 changed files with 47 additions and 24 deletions
+1
View File
@@ -363,6 +363,7 @@ lbValue lb_find_or_add_entity_string(lbModule *m, String const &str);
lbValue lb_generate_anonymous_proc_lit(lbModule *m, String const &prefix_name, Ast *expr, lbProcedure *parent = nullptr);
bool lb_is_const(lbValue value);
bool lb_is_const_or_global(lbValue value);
bool lb_is_const_nil(lbValue value);
String lb_get_const_string(lbModule *m, lbValue value);