mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Silencing an "enumeral and non-enumeral type in conditional expression" warning. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218381 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a27231780
commit
6a07014c57
@ -1281,7 +1281,8 @@ bool SIInstrInfo::isOperandLegal(const MachineInstr *MI, unsigned OpIdx,
|
||||
MO = &MI->getOperand(OpIdx);
|
||||
|
||||
if (usesConstantBus(MRI, *MO)) {
|
||||
unsigned SGPRUsed = MO->isReg() ? MO->getReg() : AMDGPU::NoRegister;
|
||||
unsigned SGPRUsed =
|
||||
MO->isReg() ? MO->getReg() : (unsigned)AMDGPU::NoRegister;
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
if (i == OpIdx)
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user