]> granicus.if.org Git - llvm/commitdiff
RegAllocFast: Fix warning; NFC
authorMatthias Braun <matze@braunis.de>
Sat, 9 Sep 2017 01:16:59 +0000 (01:16 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 9 Sep 2017 01:16:59 +0000 (01:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312852 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocFast.cpp

index 92f653945b550a3df4ec75ebaa43e940d648341a..fd6e602bbe415dedd19952047f113c2ae55240c0 100644 (file)
@@ -742,9 +742,8 @@ void RegAllocFast::handleThroughOperands(MachineInstr &MI,
     if (!TargetRegisterInfo::isVirtualRegister(Reg)) continue;
     if (MO.isUse()) {
       if (!MO.isTied()) continue;
-      unsigned DefIdx = MI.findTiedOperandIdx(I);
       DEBUG(dbgs() << "Operand " << I << "("<< MO << ") is tied to operand "
-        << DefIdx << ".\n");
+        << MI.findTiedOperandIdx(I) << ".\n");
       LiveRegMap::iterator LRI = reloadVirtReg(MI, I, Reg, 0);
       MCPhysReg PhysReg = LRI->PhysReg;
       setPhysReg(MI, I, PhysReg);