[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp

Reid Spencer reid at x10sys.com
Sat Feb 10 11:03:17 PST 2007



Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.169 -> 1.170
---
Log message:

Allow PackedType to be constructed with an abstract type.


---
Diffs of the changes:  (+1 -3)

 Type.cpp |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)


Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.169 llvm/lib/VMCore/Type.cpp:1.170
--- llvm/lib/VMCore/Type.cpp:1.169	Fri Feb  9 16:24:04 2007
+++ llvm/lib/VMCore/Type.cpp	Sat Feb 10 13:03:01 2007
@@ -424,10 +424,8 @@
 PackedType::PackedType(const Type *ElType, unsigned NumEl)
   : SequentialType(PackedTyID, ElType) {
   NumElements = NumEl;
-
+  setAbstract(ElType->isAbstract());
   assert(NumEl > 0 && "NumEl of a PackedType must be greater than 0");
-  assert((ElType->isInteger() || ElType->isFloatingPoint()) &&
-         "Elements of a PackedType must be a primitive type");
 }
 
 






More information about the llvm-commits mailing list