1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Lost changes

This commit is contained in:
Brian Fiete 2021-02-25 10:14:22 -08:00
parent e6c4a95ccd
commit 8e9d7ed4c4
56 changed files with 1579 additions and 794 deletions

View file

@ -690,6 +690,8 @@ void BeIRCodeGen::Read(BeValue*& beValue)
CMD_PARAM(BeConstant*, initializer);
CMD_PARAM(String, name);
CMD_PARAM(bool, isTLS);
BF_ASSERT(varType != NULL);
auto globalVariable = mBeModule->mGlobalVariables.Alloc();
globalVariable->mModule = mBeModule;
@ -1906,7 +1908,9 @@ void BeIRCodeGen::HandleNextCmd()
CMD_PARAM(StringT<256>, name);
CMD_PARAM(bool, isTLS);
CMD_PARAM(BeConstant*, initializer);
BF_ASSERT(varType != NULL);
auto globalVariable = mBeModule->mGlobalVariables.Alloc();
globalVariable->mModule = mBeModule;
globalVariable->mType = varType;