[LLDB][NFC] Remove redundant condition
authorAdam Balogh <adam.balogh@ericsson.com>
Thu, 25 Jun 2020 14:23:35 +0000 (16:23 +0200)
committerAdam Balogh <adam.balogh@ericsson.com>
Wed, 1 Jul 2020 07:04:26 +0000 (09:04 +0200)
commit1b2d2d70e1ec161878a78d880fb8972550b88185
tree1e9d9e2bc777ac758e3d71311545b96ae97e2fca
parentec5ba353fab79d2201f63485117682756da31d46
[LLDB][NFC] Remove redundant condition

Condition `auto_advance_pc` is checked both in an outer and in an
inner `if` statement in `EmulateInstructionARM::EvaluateInstruction()`,
`EmulateInstructionARM64::EvaluateInstruction()` and
`EmulateInstructionPPC64::EvaluateInstruction()`. This patch removes the
redundant inner check.

The issue was found using `clang-tidy` check under review
`misc-redundant-condition`. See https://reviews.llvm.org/D81272.

Differential Revision: https://reviews.llvm.org/D82558
lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
lldb/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp
lldb/source/Plugins/Instruction/PPC64/EmulateInstructionPPC64.cpp