diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-18 16:54:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-18 16:54:48 +0000 |
commit | 8164d6535a2c7f496c8512d515b4078fbabc5254 (patch) | |
tree | 6f33452adadb2b65642ba3b358f35bc9f37b0839 | |
parent | 72af6b8e5d7548a4a6805b156169d240cef7d0db (diff) |
Fix linking bug in xboard
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7952 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Constants.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index ab4bdb390b..eb93da3c1d 100644 --- 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)); } } |