Fix for ZAM optimization of '?' conditional with vector-valued result

This commit is contained in:
Vern Paxson 2022-07-07 13:08:28 -07:00
parent ee88aa3acb
commit 0706e8869d
3 changed files with 11 additions and 1 deletions

View file

@ -227,7 +227,7 @@ const ZAMStmt ZAMCompiler::CompileAssignExpr(const AssignExpr* e)
return CondC2VVC(lhs, n1, c3);
}
if ( r1 && r2 )
if ( r1 && r2 && ! r3 )
{
auto v1 = IsVector(r1->GetType()->Tag());
auto v2 = IsVector(r2->GetType()->Tag());