Author: James Y Knight Date: 2025-06-30T11:54:36-04:00 New Revision: 25e5010a302f2c93397c56d7c07168e075a15a44
URL: https://github.com/llvm/llvm-project/commit/25e5010a302f2c93397c56d7c07168e075a15a44 DIFF: https://github.com/llvm/llvm-project/commit/25e5010a302f2c93397c56d7c07168e075a15a44.diff LOG: [lldb] Delete unused variables in TestLoongArchEmulator.cpp. These were introduced by d7e23bef6ad497cd5a100126957c381e053dda9b "[lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server" Added: Modified: lldb/unittests/Instruction/LoongArch/TestLoongArchEmulator.cpp Removed: ################################################################################ diff --git a/lldb/unittests/Instruction/LoongArch/TestLoongArchEmulator.cpp b/lldb/unittests/Instruction/LoongArch/TestLoongArchEmulator.cpp index 1be0ef2af3c2e..f3b0d65c2cbfe 100644 --- a/lldb/unittests/Instruction/LoongArch/TestLoongArchEmulator.cpp +++ b/lldb/unittests/Instruction/LoongArch/TestLoongArchEmulator.cpp @@ -166,7 +166,6 @@ using EncoderBZcond = uint32_t (*)(uint32_t rj, int32_t offs21); using EncoderBCZcond = uint32_t (*)(uint8_t cj, int32_t offs21); TEST_F(LoongArch64EmulatorTester, testJIRL) { - bool success = false; addr_t old_pc = 0x12000600; WritePC(old_pc); // JIRL r1, r12, 0x10 @@ -184,7 +183,6 @@ TEST_F(LoongArch64EmulatorTester, testJIRL) { } TEST_F(LoongArch64EmulatorTester, testB) { - bool success = false; addr_t old_pc = 0x12000600; WritePC(old_pc); // B 0x10010 @@ -199,7 +197,6 @@ TEST_F(LoongArch64EmulatorTester, testB) { } TEST_F(LoongArch64EmulatorTester, testBL) { - bool success = false; addr_t old_pc = 0x12000600; WritePC(old_pc); // BL 0x10010 @@ -218,7 +215,6 @@ TEST_F(LoongArch64EmulatorTester, testBL) { static void testBcondBranch(LoongArch64EmulatorTester *tester, EncoderBcond encoder, bool branched, uint64_t rj_val, uint64_t rd_val) { - bool success = false; addr_t old_pc = 0x12000600; tester->WritePC(old_pc); tester->gpr.gpr[12] = rj_val; @@ -234,7 +230,6 @@ static void testBcondBranch(LoongArch64EmulatorTester *tester, static void testBZcondBranch(LoongArch64EmulatorTester *tester, EncoderBZcond encoder, bool branched, uint64_t rj_val) { - bool success = false; addr_t old_pc = 0x12000600; tester->WritePC(old_pc); tester->gpr.gpr[4] = rj_val; @@ -249,7 +244,6 @@ static void testBZcondBranch(LoongArch64EmulatorTester *tester, static void testBCZcondBranch(LoongArch64EmulatorTester *tester, EncoderBCZcond encoder, bool branched, uint32_t cj_val) { - bool success = false; addr_t old_pc = 0x12000600; tester->WritePC(old_pc); tester->fpr.fcc = cj_val; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits