Replace fix with one less disruptive to the original code.

Also note that GCC 4.1 also correctly flags the syntax error.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25076 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen 2006-01-04 03:23:30 +00:00
parent f356d70ec3
commit 60e9187a90

View File

@ -2030,13 +2030,12 @@ public:
std::string Fn = CP->getSelectFunc(); std::string Fn = CP->getSelectFunc();
NumRes = CP->getNumOperands(); NumRes = CP->getNumOperands();
OS << " SDOperand "; OS << " SDOperand ";
unsigned i; for (unsigned i = 0; i < NumRes - 1; ++i)
for (i = 0; i < NumRes - 1; ++i)
OS << "Tmp" << (i+ResNo) << ","; OS << "Tmp" << (i+ResNo) << ",";
OS << "Tmp" << (i+ResNo) << ";\n"; OS << "Tmp" << (NumRes - 1 + ResNo) << ";\n";
OS << " if (!" << Fn << "(" << Val; OS << " if (!" << Fn << "(" << Val;
for (i = 0; i < NumRes; i++) for (unsigned i = 0; i < NumRes; i++)
OS << ", Tmp" << i + ResNo; OS << ", Tmp" << i + ResNo;
OS << ")) goto P" << PatternNo << "Fail;\n"; OS << ")) goto P" << PatternNo << "Fail;\n";
TmpNo = ResNo + NumRes; TmpNo = ResNo + NumRes;