mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed temp methodState in array size evaluation
This commit is contained in:
parent
8155d7286a
commit
98c36c45af
1 changed files with 3 additions and 1 deletions
|
@ -3504,8 +3504,10 @@ int BfResolvedTypeSet::DoHash(BfTypeReference* typeRef, LookupContext* ctx, BfHa
|
|||
if (sizeExpr != NULL)
|
||||
{
|
||||
BfMethodState methodState;
|
||||
SetAndRestoreValue<BfMethodState*> prevMethodState(ctx->mModule->mCurMethodState, &methodState);
|
||||
methodState.mTempKind = BfMethodState::TempKind_Static;
|
||||
SetAndRestoreValue<BfMethodState*> prevMethodState;
|
||||
if (ctx->mModule->mCurMethodState == NULL)
|
||||
prevMethodState.Init(ctx->mModule->mCurMethodState, &methodState);
|
||||
|
||||
BfConstResolver constResolver(ctx->mModule);
|
||||
BfType* intType = ctx->mModule->GetPrimitiveType(BfTypeCode_IntPtr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue