Skip to content
Permalink
Browse files

fix UT failure

  • Loading branch information...
MikeHolman committed May 14, 2019
1 parent 00ff32c commit 4594e340bc9ca9f857010a68e8b562d65b46eed6
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Backend/GlobOptArrays.cpp
@@ -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);
}

0 comments on commit 4594e34

Please sign in to comment.
You can’t perform that action at this time.