diff options
author | Chris Lattner <sabre@nondot.org> | 2001-12-14 16:30:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-12-14 16:30:51 +0000 |
commit | 90865150e4f45f8c7da9b40cba3f3a815d304ab4 (patch) | |
tree | 7e5bc19203c7ed17e71e6b18a2902926fe03ca81 /lib/Bytecode/Writer/ConstantWriter.cpp | |
parent | b024ef5e62a23f8701dc757ea49e7b8080c3725a (diff) |
Remove unsized array support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/ConstantWriter.cpp')
-rw-r--r-- | lib/Bytecode/Writer/ConstantWriter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp index 0700a2e63e..bcfa976573 100644 --- a/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/lib/Bytecode/Writer/ConstantWriter.cpp @@ -123,9 +123,7 @@ bool BytecodeWriter::outputConstant(const Constant *CPV) { case Type::ArrayTyID: { const ConstantArray *CPA = cast<const ConstantArray>(CPV); unsigned size = CPA->getValues().size(); - if (!((const ArrayType *)CPA->getType())->isSized()) - output_vbr(size, Out); // Not for sized arrays!!! - + assert(size == cast<ArrayType>(CPA->getType())->getNumElements() && "ConstantArray out of whack!"); for (unsigned i = 0; i < size; i++) { int Slot = Table.getValSlot(CPA->getOperand(i)); assert(Slot != -1 && "Constant used but not available!!"); |