summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-31 01:44:44 +0000
committerChris Lattner <sabre@nondot.org>2009-12-31 01:44:44 +0000
commitb9196679f994d30169639f59817e7f3f571bb8bb (patch)
tree3876074044fab11dd9af47497cba613f748819f8 /llvm/lib
parent31fcc28a8479eb8bfadef1d22171c7de7a58abe6 (diff)
downloadbcm5719-llvm-b9196679f994d30169639f59817e7f3f571bb8bb.tar.gz
bcm5719-llvm-b9196679f994d30169639f59817e7f3f571bb8bb.zip
fix printing of function-local metadata to print all the operands of the
mdnode, not just operand 0 over and over. llvm-svn: 92326
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index f9ca2cb01ee..d2693c8ebd2 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/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 << ", ";
OpenPOWER on IntegriCloud