2
0
Эх сурвалжийг харах

Make TryToVector more strict

Brian Fiete 2 жил өмнө
parent
commit
7083739120

+ 3 - 0
IDEHelper/Backend/BeMCContext.cpp

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