mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Removed unwanted LoadValue of generic param
This commit is contained in:
parent
fc9f191380
commit
42121491f0
1 changed files with 1 additions and 1 deletions
|
@ -7647,7 +7647,7 @@ BfTypedValue BfModule::CreateValueFromExpression(BfExprEvaluator& exprEvaluator,
|
|||
}
|
||||
}
|
||||
|
||||
if (!typedVal.mType->IsComposite()) // Load non-structs by default
|
||||
if ((!typedVal.mType->IsComposite()) && (!typedVal.mType->IsGenericParam())) // Load non-structs by default
|
||||
{
|
||||
if ((!mBfIRBuilder->mIgnoreWrites) && (!typedVal.mType->IsValuelessType()) && (!typedVal.mType->IsVar()))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue