mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +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);
|
auto type = GetType(operand);
|
||||||
if (!type->IsPointer())
|
if (!type->IsPointer())
|
||||||
return operand;
|
return operand;
|
||||||
|
auto pointerType = (BePointerType*)type;
|
||||||
|
if (!pointerType->mElementType->IsVector())
|
||||||
|
return operand;
|
||||||
return CreateLoad(operand);
|
return CreateLoad(operand);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue