diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index adbcd78c25f..55d037db141 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1292,17 +1292,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { writeOperand(I.getOperand(op+1), false); Out << " ]"; } } else if (const GetResultInst *GRI = dyn_cast(&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); + writeOperand(I.getOperand(0), true); Out << ", " << GRI->getIndex(); } else if (isa(I) && !Operand) { Out << " void";