mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Make TryToVector more strict
This commit is contained in:
parent
07f14f0ab8
commit
7083739120
1 changed files with 3 additions and 0 deletions
|
@ -2582,6 +2582,9 @@ BeMCOperand BeMCContext::TryToVector(BeValue* value)
|
|||
auto type = GetType(operand);
|
||||
if (!type->IsPointer())
|
||||
return operand;
|
||||
auto pointerType = (BePointerType*)type;
|
||||
if (!pointerType->mElementType->IsVector())
|
||||
return operand;
|
||||
return CreateLoad(operand);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue