mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Improved ExtractValue union splat handling
This commit is contained in:
parent
cafbcd30dc
commit
c270acdb39
1 changed files with 2 additions and 2 deletions
|
@ -13215,7 +13215,7 @@ BfTypedValue BfModule::ExtractValue(BfTypedValue typedValue, BfFieldInstance* fi
|
||||||
{
|
{
|
||||||
bool isAddr = false;
|
bool isAddr = false;
|
||||||
BfIRValue irVal = ExtractSplatValue(typedValue, 0, fieldType, &isAddr);
|
BfIRValue irVal = ExtractSplatValue(typedValue, 0, fieldType, &isAddr);
|
||||||
return BfTypedValue(irVal, fieldType, isAddr ? BfTypedValueKind_Addr : BfTypedValueKind_SplatHead);
|
return BfTypedValue(irVal, fieldType, typedValue.mValue.IsArg() ? BfTypedValueKind_SplatHead : BfTypedValueKind_Addr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13242,7 +13242,7 @@ BfTypedValue BfModule::ExtractValue(BfTypedValue typedValue, BfFieldInstance* fi
|
||||||
{
|
{
|
||||||
bool isAddr = false;
|
bool isAddr = false;
|
||||||
BfIRValue irVal = ExtractSplatValue(typedValue, 0, fieldType, &isAddr);
|
BfIRValue irVal = ExtractSplatValue(typedValue, 0, fieldType, &isAddr);
|
||||||
return BfTypedValue(irVal, fieldType, isAddr ? BfTypedValueKind_Addr : BfTypedValueKind_SplatHead);
|
return BfTypedValue(irVal, fieldType, typedValue.mValue.IsArg() ? BfTypedValueKind_SplatHead : BfTypedValueKind_Addr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue