[Lldb-commits] [PATCH] D140616: [LLDB][LoongArch] Optimize EmulateInstructionLoongArch related code

Hui Li via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Dec 23 18:20:45 PST 2022


lh03061238 added inline comments.


================
Comment at: lldb/source/Plugins/Instruction/LoongArch/EmulateInstructionLoongArch.cpp:202
 bool EmulateInstructionLoongArch::EmulateBEQZ(uint32_t inst) {
-  if (IsLoongArch64())
-    return EmulateBEQZ64(inst);
-  else
-    return false;
+  return (IsLoongArch64()) ? EmulateBEQZ64(inst) : false;
 }
----------------
SixWeining wrote:
> return IsLoongArch64() ? EmulateBEQZ64(inst) : false;
Will be modified,
thank you


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140616/new/

https://reviews.llvm.org/D140616



More information about the lldb-commits mailing list