diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-12-14 16:38:04 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-12-14 16:38:04 +0000 |
| commit | b3364fc169dee54142d14efbdf7b86a17ff8500f (patch) | |
| tree | 0e621e23813df33a409d363b442709067c4b4c09 /llvm/lib | |
| parent | b457653c6f8f62da6084af7b86bdcba9e890fd3a (diff) | |
| download | bcm5719-llvm-b3364fc169dee54142d14efbdf7b86a17ff8500f.tar.gz bcm5719-llvm-b3364fc169dee54142d14efbdf7b86a17ff8500f.zip | |
Remove unsized array support
llvm-svn: 1466
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LowerAllocations.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp index bb2cdb67fa4..666b6d976eb 100644 --- a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp +++ b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp @@ -70,12 +70,6 @@ bool LowerAllocations::doPerMethodWork(Method *M) { const Type *AllocTy =cast<PointerType>(MI->getType())->getElementType(); - // If the user is allocating an unsized array with a dynamic size arg, - // start by getting the size of one element. - // - if (const ArrayType *ATy = dyn_cast<ArrayType>(AllocTy)) - if (ATy->isUnsized()) AllocTy = ATy->getElementType(); - // Get the number of bytes to be allocated for one element of the // requested type... unsigned Size = DataLayout.getTypeSize(AllocTy); |

