mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
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:
parent
f356d70ec3
commit
60e9187a90
@ -2030,13 +2030,12 @@ public:
|
||||
std::string Fn = CP->getSelectFunc();
|
||||
NumRes = CP->getNumOperands();
|
||||
OS << " SDOperand ";
|
||||
unsigned i;
|
||||
for (i = 0; i < NumRes - 1; ++i)
|
||||
for (unsigned i = 0; i < NumRes - 1; ++i)
|
||||
OS << "Tmp" << (i+ResNo) << ",";
|
||||
OS << "Tmp" << (i+ResNo) << ";\n";
|
||||
OS << "Tmp" << (NumRes - 1 + ResNo) << ";\n";
|
||||
|
||||
OS << " if (!" << Fn << "(" << Val;
|
||||
for (i = 0; i < NumRes; i++)
|
||||
for (unsigned i = 0; i < NumRes; i++)
|
||||
OS << ", Tmp" << i + ResNo;
|
||||
OS << ")) goto P" << PatternNo << "Fail;\n";
|
||||
TmpNo = ResNo + NumRes;
|
||||
|
Loading…
Reference in New Issue
Block a user