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

Fixed const string bitcast failure

This commit is contained in:
Brian Fiete 2024-12-02 08:28:24 -05:00
parent 03987ba8f5
commit 3864a8896b
3 changed files with 32 additions and 2 deletions

View file

@ -1652,6 +1652,7 @@ public:
void FixConstValueParams(BfTypeInstance* typeInst, SizedArrayImpl<BfIRValue>& valueParams, bool fillInPadding = false);
BfIRValue CreateStringObjectValue(const StringImpl& str, int stringId, bool define);
BfIRValue CreateStringCharPtr(const StringImpl& str, int stringId, bool define);
bool HasStringId(BfIRValue constantStr, BfIRConstHolder* constHolder = NULL);
int GetStringPoolIdx(BfIRValue constantStr, BfIRConstHolder* constHolder = NULL);
String* GetStringPoolString(BfIRValue constantStr, BfIRConstHolder* constHolder = NULL);
BfIRValue GetStringCharPtr(int stringId, bool force = false);