mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed CreateFakeCallerMethod issue with failed methods
This commit is contained in:
parent
28c3179d4f
commit
a81f76ffcd
1 changed files with 5 additions and 0 deletions
|
@ -3873,6 +3873,9 @@ void BfModule::EmitEquals(BfTypedValue leftValue, BfTypedValue rightValue, BfIRB
|
|||
|
||||
void BfModule::CreateFakeCallerMethod(const String& funcName)
|
||||
{
|
||||
if (mCurMethodInstance->mHasFailed)
|
||||
return;
|
||||
|
||||
BF_ASSERT(mCurMethodInstance->mIRFunction);
|
||||
|
||||
auto voidType = mBfIRBuilder->MapType(GetPrimitiveType(BfTypeCode_None));
|
||||
|
@ -13171,6 +13174,8 @@ void BfModule::AssertErrorState()
|
|||
{
|
||||
if (mCurMethodInstance->mIsUnspecializedVariation)
|
||||
return;
|
||||
if (mCurMethodInstance->mHasFailed)
|
||||
return;
|
||||
}
|
||||
|
||||
// We want the module to be marked as failed even if it's just an error in the parser
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue