fix printing of function-local metadata to print all the operands of the

mdnode, not just operand 0 over and over.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92326 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-12-31 01:44:44 +00:00
parent 4a3d3a54eb
commit 7d054b385f

View File

@ -1208,9 +1208,9 @@ static void WriteAsOperandInternal(raw_ostream &Out, const Value *V,
if (!Val)
Out << "null";
else {
TypePrinter->print(N->getOperand(0)->getType(), Out);
TypePrinter->print(N->getOperand(mi)->getType(), Out);
Out << ' ';
WriteAsOperandInternal(Out, N->getOperand(0), TypePrinter, Machine);
WriteAsOperandInternal(Out, N->getOperand(mi), TypePrinter, Machine);
}
if (mi + 1 != me)
Out << ", ";