From: Chris Lattner Date: Thu, 31 Dec 2009 01:44:44 +0000 (+0000) Subject: fix printing of function-local metadata to print all the operands of the X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7d054b385f6e102b592d8a335bfdfae6d7c9bf44;p=oota-llvm.git 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 --- diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index f9ca2cb01ee..d2693c8ebd2 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -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 << ", ";