Skip to content

Commit c119221

Browse files
committed
Changing an assert in globopt to correctly reflect the invariant
1 parent a9d1e72 commit c119221

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Backend/GlobOptBailOut.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,6 @@ void GlobOpt::RecordInlineeFrameInfo(IR::Instr* inlineeEnd)
784784
}
785785
}
786786

787-
GlobOptBlockData& globOptData = this->currentBlock->globOptData;
788-
789787
if (frameInfo->intSyms->TestEmpty() && frameInfo->intSyms->Test(argSym->m_id))
790788
{
791789
// Var version of the sym is not live, use the int32 version
@@ -800,7 +798,7 @@ void GlobOpt::RecordInlineeFrameInfo(IR::Instr* inlineeEnd)
800798
}
801799
else
802800
{
803-
Assert(globOptData.liveVarSyms->Test(argSym->m_id));
801+
Assert(frameInfo->varSyms->Test(argSym->m_id));
804802
}
805803

806804
if (argSym->IsConst() && !argSym->IsInt64Const())

0 commit comments

Comments
 (0)