Skip to content

Commit e73f2ff

Browse files
committed
1 parent 2781608 commit e73f2ff

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

lib/Backend/GlobOptFields.cpp

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,20 +1900,8 @@ GlobOpt::UpdateObjPtrValueType(IR::Opnd * opnd, IR::Instr * instr)
19001900
switch (typeId)
19011901
{
19021902
default:
1903-
if (typeId > Js::TypeIds_LastStaticType)
1904-
{
1905-
Assert(typeId != Js::TypeIds_Proxy);
1906-
if (objValueType.IsLikelyArrayOrObjectWithArray())
1907-
{
1908-
// If we have likely object with array before, we can't make it definite object with array
1909-
// since we have only proved that it is an object.
1910-
// Keep the likely array or object with array.
1911-
}
1912-
else
1913-
{
1914-
newValueType = ValueType::GetObject(ObjectType::Object);
1915-
}
1916-
}
1903+
// Can't mark as definite object because it may actually be object-with-array.
1904+
// Consider: a value type that subsumes object, array, and object-with-array.
19171905
break;
19181906
case Js::TypeIds_NativeIntArray:
19191907
case Js::TypeIds_NativeFloatArray:

0 commit comments

Comments
 (0)