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:
72af6b8
)
Fix linking bug in xboard
author
Chris Lattner
<sabre@nondot.org>
Mon, 18 Aug 2003 16:54:48 +0000
(16:54 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 18 Aug 2003 16:54:48 +0000
(16:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7952
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Constants.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Constants.cpp
b/lib/VMCore/Constants.cpp
index ab4bdb390b9cd658471f4b9c4b590253df9ccce8..eb93da3c1d0a9dbc009a77da20119f410eb11a01 100644
(file)
--- a/
lib/VMCore/Constants.cpp
+++ b/
lib/VMCore/Constants.cpp
@@
-213,7
+213,10
@@
ConstantArray::ConstantArray(const ArrayType *T,
const std::vector<Constant*> &V) : Constant(T) {
Operands.reserve(V.size());
for (unsigned i = 0, e = V.size(); i != e; ++i) {
- assert(V[i]->getType() == T->getElementType());
+ assert(V[i]->getType() == T->getElementType() ||
+ (T->isAbstract() &&
+ V[i]->getType()->getPrimitiveID() ==
+ T->getElementType()->getPrimitiveID()));
Operands.push_back(Use(V[i], this));
}
}