aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-24 15:25:07 +0000
committerChris Lattner <sabre@nondot.org>2009-03-24 15:25:07 +0000
commitb3b4484e3d9e36c4c24a5409f2272a806b7af908 (patch)
tree9f84fa24b564ea5cc8733bca4885fb192f009d53 /lib
parentfc9d161f16933498d572463edf952c03bc5b1ec0 (diff)
downloadexternal_llvm-b3b4484e3d9e36c4c24a5409f2272a806b7af908.zip
external_llvm-b3b4484e3d9e36c4c24a5409f2272a806b7af908.tar.gz
external_llvm-b3b4484e3d9e36c4c24a5409f2272a806b7af908.tar.bz2
Tidy a bit more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 49e6744..0f5cc17 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
@@ -4929,15 +4929,15 @@ GetRegistersForValue(SDISelAsmOperandInfo &OpInfo,
// Otherwise, if this was a reference to an LLVM register class, create vregs
// for this reference.
- if (PhysReg.second != 0) {
- RegVT = *PhysReg.second->vt_begin();
+ if (const TargetRegisterClass *RC = PhysReg.second) {
+ RegVT = *RC->vt_begin();
if (OpInfo.ConstraintVT == MVT::Other)
ValueVT = RegVT;
// Create the appropriate number of virtual registers.
MachineRegisterInfo &RegInfo = MF.getRegInfo();
for (; NumRegs; --NumRegs)
- Regs.push_back(RegInfo.createVirtualRegister(PhysReg.second));
+ Regs.push_back(RegInfo.createVirtualRegister(RC));
OpInfo.AssignedRegs = RegsForValue(TLI, Regs, RegVT, ValueVT);
return;