diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index b1f15c676f0..d376e7f611d 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1291,6 +1291,19 @@ void AssemblyWriter::printInstruction(const Instruction &I) { writeOperand(I.getOperand(op ), false); Out << ','; writeOperand(I.getOperand(op+1), false); Out << " ]"; } + } else if (isa(I)) { + const StructType *STy = cast(I.getOperand(0)->getType()); + unsigned NumElems = STy->getNumElements(); + Out << " {"; + for (unsigned i = 0; i < NumElems; ++i) { + if (i) + Out << ","; + Out << " "; + printType(STy->getElementType(i)); + } + Out << " }"; + writeOperand(I.getOperand(0), false); + Out << ", " << cast(I).getIndex(); } else if (isa(I)) { if (!Operand) Out << " void";