projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5da59b1
)
Allow PackedType to be constructed with an abstract type.
author
Reid Spencer
<rspencer@reidspencer.com>
Sat, 10 Feb 2007 19:03:01 +0000
(19:03 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Sat, 10 Feb 2007 19:03:01 +0000
(19:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34152
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Type.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Type.cpp
b/lib/VMCore/Type.cpp
index 6bfdfd7a1843175efd9582706ac5de19c311db8f..34bedbb00a319cb362c425999243d79f23f0162e 100644
(file)
--- a/
lib/VMCore/Type.cpp
+++ b/
lib/VMCore/Type.cpp
@@
-424,10
+424,8
@@
ArrayType::ArrayType(const Type *ElType, uint64_t NumEl)
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");
}