forked from OSchip/llvm-project
Fix -Wunused-variable and -Wunused-but-set-variable in -DLLVM_ENABLE_ASSERTIONS=off build. NFC
This commit is contained in:
parent
d4c437c428
commit
521d373274
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -5214,6 +5214,7 @@ static void getIntOperandsFromRegisterString(StringRef RegString,
|
|||
|
||||
assert(AllIntFields &&
|
||||
"Unexpected non-integer value in special register string.");
|
||||
(void)AllIntFields;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue