Skip to content

Commit 521d373

Browse files
committed
Fix -Wunused-variable and -Wunused-but-set-variable in -DLLVM_ENABLE_ASSERTIONS=off build. NFC
1 parent d4c437c commit 521d373

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2918,6 +2918,7 @@ static int getIntOperandFromRegisterString(StringRef RegString) {
29182918

29192919
assert(AllIntFields &&
29202920
"Unexpected non-integer value in special register string.");
2921+
(void)AllIntFields;
29212922

29222923
// Need to combine the integer fields of the string into a single value
29232924
// based on the bit encoding of MRS/MSR instruction.

llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,9 +2082,7 @@ bool AMDGPULegalizerInfo::legalizeFPTOI(MachineInstr &MI,
20822082
const LLT S32 = LLT::scalar(32);
20832083

20842084
const LLT SrcLT = MRI.getType(Src);
2085-
const LLT DstLT = MRI.getType(Dst);
2086-
2087-
assert((SrcLT == S32 || SrcLT == S64) && DstLT == S64);
2085+
assert((SrcLT == S32 || SrcLT == S64) && MRI.getType(Dst) == S64);
20882086

20892087
unsigned Flags = MI.getFlags();
20902088

llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5214,6 +5214,7 @@ static void getIntOperandsFromRegisterString(StringRef RegString,
52145214

52155215
assert(AllIntFields &&
52165216
"Unexpected non-integer value in special register string.");
5217+
(void)AllIntFields;
52175218
}
52185219
}
52195220

0 commit comments

Comments
 (0)