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

Fixed string serialization issue in attributes

This commit is contained in:
Brian Fiete 2020-08-13 14:44:14 -07:00
parent 685a036eb2
commit fe4027d33a
2 changed files with 3 additions and 1 deletions

View file

@ -1755,7 +1755,7 @@ void BeIRCodeGen::HandleNextCmd()
CMD_PARAM(BeType*, varType);
CMD_PARAM(bool, isConstant);
BfIRLinkageType linkageType = (BfIRLinkageType)mStream->Read();
CMD_PARAM(String, name);
CMD_PARAM(StringT<256>, name);
CMD_PARAM(bool, isTLS);
CMD_PARAM(BeConstant*, initializer);

View file

@ -5644,6 +5644,7 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary<int, int>& usedStrin
GetStringObjectValue(stringId);
PUSH_INT8(0xFF); // String
PUSH_INT32(*orderedIdPtr);
argIdx++;
continue;
}
@ -5663,6 +5664,7 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary<int, int>& usedStrin
GetStringObjectValue(stringId);
PUSH_INT8(0xFF); // String
PUSH_INT32(*orderedIdPtr);
argIdx++;
continue;
}
}