Silencing nine warnings for "enumeral and non-enumeral type in conditional expression"; NFC.

llvm-svn: 252728
This commit is contained in:
Aaron Ballman 2015-11-11 13:44:06 +00:00
parent a9a728513c
commit 107bb0d193
1 changed files with 18 additions and 10 deletions

View File

@ -531,16 +531,24 @@ MachineInstr *X86FrameLowering::emitStackProbeInline(
// registers. For the prolog expansion we use RAX, RCX and RDX.
MachineRegisterInfo &MRI = MF.getRegInfo();
const TargetRegisterClass *RegClass = &X86::GR64RegClass;
const unsigned
SizeReg = InProlog ? X86::RAX : MRI.createVirtualRegister(RegClass),
ZeroReg = InProlog ? X86::RCX : MRI.createVirtualRegister(RegClass),
CopyReg = InProlog ? X86::RDX : MRI.createVirtualRegister(RegClass),
TestReg = InProlog ? X86::RDX : MRI.createVirtualRegister(RegClass),
FinalReg = InProlog ? X86::RDX : MRI.createVirtualRegister(RegClass),
RoundedReg = InProlog ? X86::RDX : MRI.createVirtualRegister(RegClass),
LimitReg = InProlog ? X86::RCX : MRI.createVirtualRegister(RegClass),
JoinReg = InProlog ? X86::RCX : MRI.createVirtualRegister(RegClass),
ProbeReg = InProlog ? X86::RCX : MRI.createVirtualRegister(RegClass);
const unsigned SizeReg = InProlog ? (unsigned)X86::RAX
: MRI.createVirtualRegister(RegClass),
ZeroReg = InProlog ? (unsigned)X86::RCX
: MRI.createVirtualRegister(RegClass),
CopyReg = InProlog ? (unsigned)X86::RDX
: MRI.createVirtualRegister(RegClass),
TestReg = InProlog ? (unsigned)X86::RDX
: MRI.createVirtualRegister(RegClass),
FinalReg = InProlog ? (unsigned)X86::RDX
: MRI.createVirtualRegister(RegClass),
RoundedReg = InProlog ? (unsigned)X86::RDX
: MRI.createVirtualRegister(RegClass),
LimitReg = InProlog ? (unsigned)X86::RCX
: MRI.createVirtualRegister(RegClass),
JoinReg = InProlog ? (unsigned)X86::RCX
: MRI.createVirtualRegister(RegClass),
ProbeReg = InProlog ? (unsigned)X86::RCX
: MRI.createVirtualRegister(RegClass);
// SP-relative offsets where we can save RCX and RDX.
int64_t RCXShadowSlot = 0;