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,7 +22592,8 @@ void BfExprEvaluator::PerformUnaryOperation(BfExpression* unaryOpExpr, BfUnaryOp
{ {
if (mExpectingType->IsRef()) if (mExpectingType->IsRef())
mExpectingType = mExpectingType->GetUnderlyingType(); mExpectingType = mExpectingType->GetUnderlyingType();
mExpectingType = mModule->CreatePointerType(mExpectingType); if (!mExpectingType->IsVar())
mExpectingType = mModule->CreatePointerType(mExpectingType);
} }
break; break;
case BfUnaryOp_Negate: case BfUnaryOp_Negate: