1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24: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())
mExpectingType = mExpectingType->GetUnderlyingType();
if (!mExpectingType->IsVar())
mExpectingType = mModule->CreatePointerType(mExpectingType);
}
break;