mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed MapType issue with global var
This commit is contained in:
parent
cffd849045
commit
1c14177638
2 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
@ -1907,7 +1909,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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue