Name this variable to be what it really is!
authorChris Lattner <sabre@nondot.org>
Tue, 30 Aug 2005 01:58:51 +0000 (01:58 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Aug 2005 01:58:51 +0000 (01:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23145 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

index 8fac71c372cd2d27c21e03bfbb4a7310a1e9369a..2cea218117ad6c8e8f214919472a6cce67792621 100644 (file)
@@ -205,13 +205,13 @@ unsigned SimpleSched::Emit(SDOperand Op) {
         Emit(Op.getOperand(i));
       break;
     case ISD::CopyToReg: {
-      SDOperand ChainOp;
+      SDOperand FlagOp;
       if (Op.getNumOperands() == 4)
-        ChainOp = Op.getOperand(3);
-      if (Op.getOperand(0).Val != ChainOp.Val)
+        FlagOp = Op.getOperand(3);
+      if (Op.getOperand(0).Val != FlagOp.Val)
         Emit(Op.getOperand(0));   // Emit the chain.
       unsigned Val = Emit(Op.getOperand(2));
-      if (ChainOp.Val) Emit(ChainOp);
+      if (FlagOp.Val) Emit(FlagOp);
       MRI.copyRegToReg(*BB, BB->end(),
                        cast<RegisterSDNode>(Op.getOperand(1))->getReg(), Val,
                        RegMap->getRegClass(Val));