[llvm] r252728 - Silencing nine warnings for "enumeral and non-enumeral type in conditional expression"; NFC.
Aaron Ballman via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 05:44:06 PST 2015
Author: aaronballman
Date: Wed Nov 11 07:44:06 2015
New Revision: 252728
URL: http://llvm.org/viewvc/llvm-project?rev=252728&view=rev
Log:
Silencing nine warnings for "enumeral and non-enumeral type in conditional expression"; NFC.
Modified:
llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.cpp?rev=252728&r1=252727&r2=252728&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Wed Nov 11 07:44:06 2015
@@ -531,16 +531,24 @@ MachineInstr *X86FrameLowering::emitStac
// 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;
More information about the llvm-commits
mailing list