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:
parent
685a036eb2
commit
fe4027d33a
2 changed files with 3 additions and 1 deletions
|
@ -1755,7 +1755,7 @@ void BeIRCodeGen::HandleNextCmd()
|
||||||
CMD_PARAM(BeType*, varType);
|
CMD_PARAM(BeType*, varType);
|
||||||
CMD_PARAM(bool, isConstant);
|
CMD_PARAM(bool, isConstant);
|
||||||
BfIRLinkageType linkageType = (BfIRLinkageType)mStream->Read();
|
BfIRLinkageType linkageType = (BfIRLinkageType)mStream->Read();
|
||||||
CMD_PARAM(String, name);
|
CMD_PARAM(StringT<256>, name);
|
||||||
CMD_PARAM(bool, isTLS);
|
CMD_PARAM(bool, isTLS);
|
||||||
CMD_PARAM(BeConstant*, initializer);
|
CMD_PARAM(BeConstant*, initializer);
|
||||||
|
|
||||||
|
|
|
@ -5644,6 +5644,7 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary<int, int>& usedStrin
|
||||||
GetStringObjectValue(stringId);
|
GetStringObjectValue(stringId);
|
||||||
PUSH_INT8(0xFF); // String
|
PUSH_INT8(0xFF); // String
|
||||||
PUSH_INT32(*orderedIdPtr);
|
PUSH_INT32(*orderedIdPtr);
|
||||||
|
argIdx++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5663,6 +5664,7 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary<int, int>& usedStrin
|
||||||
GetStringObjectValue(stringId);
|
GetStringObjectValue(stringId);
|
||||||
PUSH_INT8(0xFF); // String
|
PUSH_INT8(0xFF); // String
|
||||||
PUSH_INT32(*orderedIdPtr);
|
PUSH_INT32(*orderedIdPtr);
|
||||||
|
argIdx++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue