Skip to content

Commit

Permalink
Silencing nine warnings for "enumeral and non-enumeral type in condit…
Browse files Browse the repository at this point in the history
…ional expression"; NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252728 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
AaronBallman committed Nov 11, 2015
1 parent 4c37e73 commit 52525c0
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions lib/Target/X86/X86FrameLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 52525c0

Please sign in to comment.