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

Fixed LinkName

This commit is contained in:
Brian Fiete 2020-03-30 14:09:02 -07:00
parent 2f144ee19b
commit c62dbdf811

View file

@ -10111,7 +10111,7 @@ bool BfModule::TryGetConstString(BfIRConstHolder* constHolder, BfIRValue irValue
auto constant = constHolder->GetConstant(irValue); auto constant = constHolder->GetConstant(irValue);
if (constant == NULL) if (constant == NULL)
return false; return false;
if (!BfIRConstHolder::IsInt(constant->mTypeCode)) if (constant->mTypeCode != BfTypeCode_StringId)
return false; return false;
int stringId = constant->mInt32; int stringId = constant->mInt32;
BfStringPoolEntry* entry = NULL; BfStringPoolEntry* entry = NULL;