Skip to content

Commit be74d83

Browse files
boingoingpleath
authored andcommitted
1 parent 40028db commit be74d83

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

lib/Backend/GlobOptFields.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,19 +1123,6 @@ GlobOpt::ProcessPropOpInTypeCheckSeq(IR::Instr* instr, IR::PropertySymOpnd *opnd
11231123
Assert(opnd->IsTypeCheckSeqCandidate());
11241124
Assert(opnd->HasObjectTypeSym());
11251125

1126-
if (opnd->HasTypeMismatch())
1127-
{
1128-
if (emitsTypeCheckOut != nullptr)
1129-
{
1130-
*emitsTypeCheckOut = false;
1131-
}
1132-
if (changesTypeValueOut != nullptr)
1133-
{
1134-
*changesTypeValueOut = false;
1135-
}
1136-
return false;
1137-
}
1138-
11391126
bool isStore = opnd == instr->GetDst();
11401127
bool isTypeDead = opnd->IsTypeDead();
11411128
bool consumeType = makeChanges && !IsLoopPrePass();
@@ -1175,6 +1162,19 @@ GlobOpt::ProcessPropOpInTypeCheckSeq(IR::Instr* instr, IR::PropertySymOpnd *opnd
11751162
opnd->SetTypeAvailable(true);
11761163
}
11771164

1165+
if (opnd->HasTypeMismatch())
1166+
{
1167+
if (emitsTypeCheckOut != nullptr)
1168+
{
1169+
*emitsTypeCheckOut = false;
1170+
}
1171+
if (changesTypeValueOut != nullptr)
1172+
{
1173+
*changesTypeValueOut = false;
1174+
}
1175+
return false;
1176+
}
1177+
11781178
bool doEquivTypeCheck = opnd->HasEquivalentTypeSet() && !opnd->NeedsMonoCheck();
11791179
if (!doEquivTypeCheck)
11801180
{

0 commit comments

Comments
 (0)