Skip to content

Commit 25e5010

Browse files
committed
[lldb] Delete unused variables in TestLoongArchEmulator.cpp.
These were introduced by d7e23be "[lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server"
1 parent 4aaab69 commit 25e5010

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lldb/unittests/Instruction/LoongArch/TestLoongArchEmulator.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ using EncoderBZcond = uint32_t (*)(uint32_t rj, int32_t offs21);
166166
using EncoderBCZcond = uint32_t (*)(uint8_t cj, int32_t offs21);
167167

168168
TEST_F(LoongArch64EmulatorTester, testJIRL) {
169-
bool success = false;
170169
addr_t old_pc = 0x12000600;
171170
WritePC(old_pc);
172171
// JIRL r1, r12, 0x10
@@ -184,7 +183,6 @@ TEST_F(LoongArch64EmulatorTester, testJIRL) {
184183
}
185184

186185
TEST_F(LoongArch64EmulatorTester, testB) {
187-
bool success = false;
188186
addr_t old_pc = 0x12000600;
189187
WritePC(old_pc);
190188
// B 0x10010
@@ -199,7 +197,6 @@ TEST_F(LoongArch64EmulatorTester, testB) {
199197
}
200198

201199
TEST_F(LoongArch64EmulatorTester, testBL) {
202-
bool success = false;
203200
addr_t old_pc = 0x12000600;
204201
WritePC(old_pc);
205202
// BL 0x10010
@@ -218,7 +215,6 @@ TEST_F(LoongArch64EmulatorTester, testBL) {
218215
static void testBcondBranch(LoongArch64EmulatorTester *tester,
219216
EncoderBcond encoder, bool branched,
220217
uint64_t rj_val, uint64_t rd_val) {
221-
bool success = false;
222218
addr_t old_pc = 0x12000600;
223219
tester->WritePC(old_pc);
224220
tester->gpr.gpr[12] = rj_val;
@@ -234,7 +230,6 @@ static void testBcondBranch(LoongArch64EmulatorTester *tester,
234230
static void testBZcondBranch(LoongArch64EmulatorTester *tester,
235231
EncoderBZcond encoder, bool branched,
236232
uint64_t rj_val) {
237-
bool success = false;
238233
addr_t old_pc = 0x12000600;
239234
tester->WritePC(old_pc);
240235
tester->gpr.gpr[4] = rj_val;
@@ -249,7 +244,6 @@ static void testBZcondBranch(LoongArch64EmulatorTester *tester,
249244
static void testBCZcondBranch(LoongArch64EmulatorTester *tester,
250245
EncoderBCZcond encoder, bool branched,
251246
uint32_t cj_val) {
252-
bool success = false;
253247
addr_t old_pc = 0x12000600;
254248
tester->WritePC(old_pc);
255249
tester->fpr.fcc = cj_val;

0 commit comments

Comments
 (0)