don't use the result of WriteAsOperand

llvm-svn: 54979
This commit is contained in:
Chris Lattner 2008-08-19 04:45:19 +00:00
parent 5d2a9a4ae6
commit 57693dda1d
1 changed files with 5 additions and 4 deletions

View File

@ -58,10 +58,11 @@ namespace {
static void PrintOps(Instruction *I, const std::vector<ValueEntry> &Ops) {
Module *M = I->getParent()->getParent()->getParent();
cerr << Instruction::getOpcodeName(I->getOpcode()) << " "
<< *Ops[0].Op->getType();
for (unsigned i = 0, e = Ops.size(); i != e; ++i)
WriteAsOperand(*cerr.stream() << " ", Ops[i].Op, false, M)
<< "," << Ops[i].Rank;
<< *Ops[0].Op->getType();
for (unsigned i = 0, e = Ops.size(); i != e; ++i) {
WriteAsOperand(*cerr.stream() << " ", Ops[i].Op, false, M);
cerr << "," << Ops[i].Rank;
}
}
namespace {