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:
parent
4211c267a6
commit
6247699298
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue