1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 06:44:10 +02:00

Fixed var* issue from BfUnaryOp_Dereference expected type

This commit is contained in:
Brian Fiete 2025-01-08 08:33:22 -08:00
parent d8be440cb6
commit bda65a8774

View file

@ -22592,6 +22592,7 @@ void BfExprEvaluator::PerformUnaryOperation(BfExpression* unaryOpExpr, BfUnaryOp
{ {
if (mExpectingType->IsRef()) if (mExpectingType->IsRef())
mExpectingType = mExpectingType->GetUnderlyingType(); mExpectingType = mExpectingType->GetUnderlyingType();
if (!mExpectingType->IsVar())
mExpectingType = mModule->CreatePointerType(mExpectingType); mExpectingType = mModule->CreatePointerType(mExpectingType);
} }
break; break;