Skip to content

Commit c20835b

Browse files
[ARM] Fix a warning
This patch fixes: llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1643:9: error: unused variable 'T2SOImmVal' [-Werror,-Wunused-variable]
1 parent 4d80e0c commit c20835b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/ARM/ARMAsmPrinter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,8 +1640,7 @@ void ARMAsmPrinter::EmitKCFI_CHECK_Thumb2(Register AddrReg, int64_t Type,
16401640
bool isLast = (i == 3);
16411641

16421642
// Verify the immediate can be encoded as Thumb2 modified immediate.
1643-
int T2SOImmVal = ARM_AM::getT2SOImmVal(imm);
1644-
assert(T2SOImmVal != -1 &&
1643+
assert(ARM_AM::getT2SOImmVal(imm) != -1 &&
16451644
"Cannot encode immediate as Thumb2 modified immediate");
16461645

16471646
// eor[s] scratch, scratch, #imm (last one sets flags with CPSR)

0 commit comments

Comments
 (0)