mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Improved handling of strings in const enum payloads
This commit is contained in:
parent
63ef0fed7a
commit
c9f1e37da7
5 changed files with 121 additions and 14 deletions
|
@ -3029,7 +3029,7 @@ BfError* BfModule::Fail(const StringImpl& error, BfAstNode* refNode, bool isPers
|
|||
}
|
||||
|
||||
if (!mReportErrors)
|
||||
{
|
||||
{
|
||||
mCompiler->mPassInstance->SilentFail();
|
||||
return NULL;
|
||||
}
|
||||
|
@ -23842,6 +23842,8 @@ bool BfModule::SlotVirtualMethod(BfMethodInstance* methodInstance, BfAmbiguityCo
|
|||
continue;
|
||||
|
||||
int checkMethodIdx = lookupMethodInstance->mVirtualTableIdx;
|
||||
if (checkMethodIdx >= baseVirtualMethodTable.mSize)
|
||||
FatalError("SlotVirtualMethod OOB in baseVirtualMethodTable[checkMethodIdx]");
|
||||
auto& baseMethodRef = baseVirtualMethodTable[checkMethodIdx];
|
||||
if (baseMethodRef.mDeclaringMethod.mMethodNum == -1)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue