Skip to content

Commit

Permalink
fix UT failure
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeHolman committed May 14, 2019
1 parent 00ff32c commit 4594e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Backend/GlobOptArrays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,7 @@ void GlobOpt::ArraySrcOpt::Optimize()
{
UpdateValue(nullptr, nullptr, nullptr);
}
else if (globOpt->IsOperationThatLikelyKillsJsArraysWithNoMissingValues(instr) && baseValueInfo->HasNoMissingValues())
else if (isLikelyJsArray && globOpt->IsOperationThatLikelyKillsJsArraysWithNoMissingValues(instr) && baseValueInfo->HasNoMissingValues())
{
globOpt->ChangeValueType(nullptr, baseValue, baseValueInfo->Type().SetHasNoMissingValues(false), true);
}
Expand Down

0 comments on commit 4594e34

Please sign in to comment.