1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Make TryToVector more strict

This commit is contained in:
Brian Fiete 2023-03-21 21:50:01 -07:00
parent 07f14f0ab8
commit 7083739120

View file

@ -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);
}