[Lldb-commits] [PATCH] D139833: [LLDB][LoongArch] Add branch instructions for EmulateInstructionLoongArch
David Spickett via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 15 03:06:31 PST 2022
DavidSpickett added inline comments.
================
Comment at: lldb/source/Plugins/Instruction/LoongArch/EmulateInstructionLoongArch.cpp:287
+ uint32_t rj = Bits32(inst, 9, 5);
+ uint64_t rj_val;
+ uint64_t pc = ReadPC(&success);
----------------
I would declare this where it is assigned. The llvm standards don't mandate that but in this case you save a line and IMO, declare as close to use is clearer.
Same for `rj`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139833/new/
https://reviews.llvm.org/D139833
More information about the lldb-commits
mailing list