silence some bogus gcc warnings
authorChris Lattner <sabre@nondot.org>
Thu, 22 Dec 2005 20:37:36 +0000 (20:37 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 22 Dec 2005 20:37:36 +0000 (20:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24962 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelEmitter.cpp

index 62581eea1d1c8992a02c2cc2c4a34c67e845a8e4..82a6eacf45a08ce795c05dd1faf6f1c1c2a9d760 100644 (file)
@@ -2483,7 +2483,7 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
      << "      CodeGenMap[N.getValue(1)] = New.getValue(1);\n"
      << "      return New.getValue(N.ResNo);\n"
      << "    } else {\n"
-     << "      SDOperand Flag;\n"
+     << "      SDOperand Flag(0, 0);\n"
      << "      if (N.getNumOperands() == 3) Flag = Select(N.getOperand(2));\n"
      << "      if (Chain == N.getOperand(0) &&\n"
      << "          (N.getNumOperands() == 2 || Flag == N.getOperand(2)))\n"
@@ -2505,7 +2505,7 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
      << "        Result = CurDAG->getCopyToReg(Chain, Reg, Val);\n"
      << "      return CodeGenMap[N] = Result;\n"
      << "    } else {\n"
-     << "      SDOperand Flag;\n"
+     << "      SDOperand Flag(0, 0);\n"
      << "      if (N.getNumOperands() == 4) Flag = Select(N.getOperand(3));\n"
      << "      if (Chain != N.getOperand(0) || Val != N.getOperand(2) ||\n"
      << "          (N.getNumOperands() == 4 && Flag != N.getOperand(3)))\n"