Skip to content

Commit b34d6b8

Browse files
committed
[ObjC] Fix an off-by-one error that would skip inlining of the first objc_msgSend stub
1 parent ae91b36 commit b34d6b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/workflow_objc/Workflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void Workflow::inlineMethodCalls(AnalysisContextRef ac)
225225

226226
if (auto info = GlobalState::analysisInfo(bv))
227227
{
228-
if (info->hasObjcStubs && func->GetStart() > info->objcStubsStartEnd.first && func->GetStart() < info->objcStubsStartEnd.second)
228+
if (info->hasObjcStubs && func->GetStart() >= info->objcStubsStartEnd.first && func->GetStart() < info->objcStubsStartEnd.second)
229229
{
230230
func->SetAutoInlinedDuringAnalysis({true, BN_FULL_CONFIDENCE});
231231
// Do no further cleanup, this is a stub and it will be cleaned up after inlining

0 commit comments

Comments
 (0)