[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
Reid Spencer
reid at x10sys.com
Fri Aug 20 08:37:40 PDT 2004
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.155 -> 1.156
---
Log message:
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.
---
Diffs of the changes: (+5 -1)
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.155 llvm/lib/VMCore/AsmWriter.cpp:1.156
--- llvm/lib/VMCore/AsmWriter.cpp:1.155 Fri Aug 20 01:00:57 2004
+++ llvm/lib/VMCore/AsmWriter.cpp Fri Aug 20 10:37:30 2004
@@ -727,7 +727,11 @@
} 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())
More information about the llvm-commits
mailing list