diff options
| author | Mark Rowe <mark@vector35.com> | 2025-07-11 08:43:33 -0700 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2025-07-13 10:08:42 -0700 |
| commit | b34d6b8b9e136743e74ff74242aafd3b52b7a8ee (patch) | |
| tree | bac162842e479c2c30e391ee749aeef5e3509cf7 /plugins/workflow_objc | |
| parent | ae91b3686853d7002f9e8b8eaf33188080f8542d (diff) | |
[ObjC] Fix an off-by-one error that would skip inlining of the first objc_msgSend stub
Diffstat (limited to 'plugins/workflow_objc')
| -rw-r--r-- | plugins/workflow_objc/Workflow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/workflow_objc/Workflow.cpp b/plugins/workflow_objc/Workflow.cpp index c0c90427..d2f9d556 100644 --- a/plugins/workflow_objc/Workflow.cpp +++ b/plugins/workflow_objc/Workflow.cpp @@ -225,7 +225,7 @@ void Workflow::inlineMethodCalls(AnalysisContextRef ac) if (auto info = GlobalState::analysisInfo(bv)) { - if (info->hasObjcStubs && func->GetStart() > info->objcStubsStartEnd.first && func->GetStart() < info->objcStubsStartEnd.second) + if (info->hasObjcStubs && func->GetStart() >= info->objcStubsStartEnd.first && func->GetStart() < info->objcStubsStartEnd.second) { func->SetAutoInlinedDuringAnalysis({true, BN_FULL_CONFIDENCE}); // Do no further cleanup, this is a stub and it will be cleaned up after inlining |
