Skip to content

Commit bc4a2b9

Browse files
committed
fix build break merging 1.11.6 to master
1 parent b43772c commit bc4a2b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Backend/GlobOptFields.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ void GlobOpt::KillLiveFields(BVSparse<JitArenaAllocator> *const fieldsToKill, BV
210210
void
211211
GlobOpt::KillLiveElems(IR::IndirOpnd * indirOpnd, BVSparse<JitArenaAllocator> * bv, bool inGlobOpt, Func *func)
212212
{
213+
IR::RegOpnd *indexOpnd = indirOpnd->GetIndexOpnd();
213214
// obj.x = 10;
214215
// obj["x"] = ...; // This needs to kill obj.x... We need to kill all fields...
215216
//
@@ -223,7 +224,7 @@ GlobOpt::KillLiveElems(IR::IndirOpnd * indirOpnd, BVSparse<JitArenaAllocator> *
223224
// - We check the type specialization status for the sym as well. For the purpose of doing kills, we can assume that
224225
// if type specialization happened, that fields don't need to be killed. Note that they may be killed in the next
225226
// pass based on the value.
226-
if (func->GetThisOrParentInlinerHasArguments() || this->IsNonNumericRegOpnd(indirOpnd->GetIndexOpnd(), inGlobOpt))
227+
if (func->GetThisOrParentInlinerHasArguments() || this->IsNonNumericRegOpnd(indexOpnd, inGlobOpt))
227228
{
228229
this->KillAllFields(bv); // This also kills all property type values, as the same bit-vector tracks those stack syms
229230
SetAnyPropertyMayBeWrittenTo();

0 commit comments

Comments
 (0)