File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
lldb/source/Plugins/UnwindAssembly/InstEmulation Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -174,8 +174,10 @@ bool UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly(
174174
175175 m_inst_emulator_up->SetInstruction (inst->GetOpcode (), inst->GetAddress (),
176176 nullptr );
177+ const EmulateInstruction::InstructionCondition new_condition =
178+ m_inst_emulator_up->GetInstructionCondition ();
177179
178- if (last_condition != m_inst_emulator_up-> GetInstructionCondition () ) {
180+ if (last_condition != new_condition ) {
179181 // If the last instruction was conditional with a different condition
180182 // than the current condition then restore the state.
181183 if (last_condition != EmulateInstruction::UnconditionalCondition) {
@@ -190,7 +192,7 @@ bool UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly(
190192 condition_block_start_state = it;
191193 }
192194
193- last_condition = m_inst_emulator_up-> GetInstructionCondition () ;
195+ last_condition = new_condition ;
194196
195197 m_inst_emulator_up->EvaluateInstruction (
196198 eEmulateInstructionOptionIgnoreConditions);
You can’t perform that action at this time.
0 commit comments