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 | b2b1b3d0360d702ebacbc6677d05853453f2de2b (patch) | |
| tree | efcba19c050ea4641d27e4b6469644f5c9813d89 /llvm/lib/Bytecode/Writer | |
| parent | f4ba3304162357f4fa260330d230ea3962eb72e8 (diff) | |
| download | bcm5719-llvm-b2b1b3d0360d702ebacbc6677d05853453f2de2b.tar.gz bcm5719-llvm-b2b1b3d0360d702ebacbc6677d05853453f2de2b.zip | |
Remove unsized array support
llvm-svn: 1461
Diffstat (limited to 'llvm/lib/Bytecode/Writer')
| -rw-r--r-- | llvm/lib/Bytecode/Writer/ConstantWriter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp index 0700a2e63e7..bcfa9765731 100644 --- a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/llvm/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!!"); |

