File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,6 @@ void Workflow::inlineMethodCalls(AnalysisContextRef ac)
105
105
if (GlobalState::viewIsIgnored (bv))
106
106
return ;
107
107
108
- auto messageHandler = GlobalState::messageHandler (bv);
109
-
110
108
const auto log = BinaryNinja::LogRegistry::GetLogger (PluginLoggerName);
111
109
112
110
// Ignore the view if it has an unsupported architecture.
@@ -141,6 +139,8 @@ void Workflow::inlineMethodCalls(AnalysisContextRef ac)
141
139
CFStringArchitectureHook* currentHook = new CFStringArchitectureHook (bv->GetDefaultArchitecture ());
142
140
bv->GetDefaultArchitecture ()->Register (currentHook);
143
141
142
+ auto messageHandler = GlobalState::messageHandler (bv);
143
+
144
144
try {
145
145
auto file = std::make_shared<ObjectiveNinja::BinaryViewFile>(bv);
146
146
@@ -188,6 +188,7 @@ void Workflow::inlineMethodCalls(AnalysisContextRef ac)
188
188
GlobalState::storeAnalysisInfo (bv, info);
189
189
}
190
190
}
191
+ auto messageHandler = GlobalState::messageHandler (bv);
191
192
192
193
if (!messageHandler->hasMessageSendFunctions ()) {
193
194
log ->LogError (" Cannot perform Objective-C IL cleanup; no objc_msgSend candidates found" );
You can’t perform that action at this time.
0 commit comments