1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Failover case for unhandled type in CreateTypeDeclaration

This commit is contained in:
Brian Fiete 2023-11-04 08:38:24 -07:00
parent 30d5bbfa0c
commit b889a7e208
2 changed files with 11 additions and 1 deletions

View file

@ -3448,6 +3448,8 @@ void BeIRCodeGen::HandleNextCmd()
CMD_PARAM(bool, alwaysPreserve);
CMD_PARAM(int, flags);
BF_ASSERT(type != NULL);
auto dbgFunc = (BeDbgFunction*)scope;
auto dbgVar = mBeModule->mOwnedValues.Alloc<BeDbgVariable>();
@ -3498,6 +3500,8 @@ void BeIRCodeGen::HandleNextCmd()
CMD_PARAM(BeMDNode*, type);
CMD_PARAM(int, initType);
BF_ASSERT(type != NULL);
auto dbgVar = mBeModule->mOwnedValues.Alloc<BeDbgVariable>();
dbgVar->mName = name;
dbgVar->mType = type;