diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 527df4f0a1..fe66575faa 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -481,6 +481,8 @@ ostream &AssemblyWriter::printTypeAtLeastOneLevel(const Type *Ty) { } else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { Out << "[" << ATy->getNumElements() << " x "; printType(ATy->getElementType()) << "]"; + } else if (OpaqueType *OTy = dyn_cast<OpaqueType>(Ty)) { + Out << OTy->getDescription(); } else { assert(Ty->isPrimitiveType() && "Unknown derived type!"); printType(Ty); |