1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed invalid temporary const during ignoreWrites cast

This commit is contained in:
Brian Fiete 2021-05-12 07:07:59 -04:00
parent 4211c267a6
commit 6247699298

View file

@ -12261,7 +12261,7 @@ BfIRValue BfModule::CastToValue(BfAstNode* srcNode, BfTypedValue typedVal, BfTyp
if (returnType == toType)
return mBfIRBuilder->GetFakeVal();
operatorOut = GetDefaultTypedValue(returnType);
operatorOut = GetDefaultTypedValue(returnType, false, BfDefaultValueKind_Addr);
}
else
{