Fix -Wunused-variable and -Wunused-but-set-variable in -DLLVM_ENABLE_ASSERTIONS=off build. NFC

This commit is contained in:
Fangrui Song 2021-06-20 11:09:07 -07:00
parent d4c437c428
commit 521d373274
3 changed files with 3 additions and 3 deletions

View File

@ -2918,6 +2918,7 @@ static int getIntOperandFromRegisterString(StringRef RegString) {
assert(AllIntFields &&
"Unexpected non-integer value in special register string.");
(void)AllIntFields;
// Need to combine the integer fields of the string into a single value
// based on the bit encoding of MRS/MSR instruction.

View File

@ -2082,9 +2082,7 @@ bool AMDGPULegalizerInfo::legalizeFPTOI(MachineInstr &MI,
const LLT S32 = LLT::scalar(32);
const LLT SrcLT = MRI.getType(Src);
const LLT DstLT = MRI.getType(Dst);
assert((SrcLT == S32 || SrcLT == S64) && DstLT == S64);
assert((SrcLT == S32 || SrcLT == S64) && MRI.getType(Dst) == S64);
unsigned Flags = MI.getFlags();

View File

@ -5214,6 +5214,7 @@ static void getIntOperandsFromRegisterString(StringRef RegString,
assert(AllIntFields &&
"Unexpected non-integer value in special register string.");
(void)AllIntFields;
}
}