1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Be a bit more tolerant of broken code

llvm-svn: 10050
This commit is contained in:
Chris Lattner 2003-11-17 01:17:04 +00:00
parent 63dabbbf92
commit 31a03e3207

View File

@ -912,15 +912,15 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
writeOperand(AI->getArraySize(), true);
}
} else if (isa<CastInst>(I)) {
writeOperand(Operand, true);
if (Operand) writeOperand(Operand, true); // Work with broken code
Out << " to ";
printType(I.getType());
} else if (isa<VAArgInst>(I)) {
writeOperand(Operand, true);
if (Operand) writeOperand(Operand, true); // Work with broken code
Out << ", ";
printType(I.getType());
} else if (const VANextInst *VAN = dyn_cast<VANextInst>(&I)) {
writeOperand(Operand, true);
if (Operand) writeOperand(Operand, true); // Work with broken code
Out << ", ";
printType(VAN->getArgType());
} else if (Operand) { // Print the normal way...