forked from OSchip/llvm-project
Fix a bug found exposed by: Regression/Other/2004-08-20-PackedControlFlow.ll
Packed types need to be allowed in type statements too. Patch provided by Brad Jones. llvm-svn: 15953
This commit is contained in:
parent
1b1a784afa
commit
e203d35be4
|
@ -727,7 +727,11 @@ std::ostream &AssemblyWriter::printTypeAtLeastOneLevel(const Type *Ty) {
|
|||
} else if (const ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
|
||||
Out << '[' << ATy->getNumElements() << " x ";
|
||||
printType(ATy->getElementType()) << ']';
|
||||
} else if (const OpaqueType *OTy = dyn_cast<OpaqueType>(Ty)) {
|
||||
} else if (const PackedType *PTy = dyn_cast<PackedType>(Ty)) {
|
||||
Out << '<' << PTy->getNumElements() << " x ";
|
||||
printType(PTy->getElementType()) << '>';
|
||||
}
|
||||
else if (const OpaqueType *OTy = dyn_cast<OpaqueType>(Ty)) {
|
||||
Out << "opaque";
|
||||
} else {
|
||||
if (!Ty->isPrimitiveType())
|
||||
|
|
Loading…
Reference in New Issue