- fixed code generation for ternary operator with vector result types

https://forum.zdoom.org/viewtopic.php?t=64831
This commit is contained in:
alexey.lysiuk 2019-05-29 13:24:03 +03:00
parent 677b24b108
commit d336a83355

View file

@ -4835,7 +4835,7 @@ ExpEmit FxConditional::Emit(VMFunctionBuilder *build)
// If this is a local variable we need another register for the result.
if (trueop.Fixed)
{
out = ExpEmit(build, trueop.RegType);
out = ExpEmit(build, trueop.RegType, trueop.RegCount);
build->Emit(truex->ValueType->GetMoveOp(), out.RegNum, trueop.RegNum, 0);
}
else out = trueop;