diff options
Diffstat (limited to 'lib/Transforms/Utils/LowerAllocations.cpp')
-rw-r--r-- | lib/Transforms/Utils/LowerAllocations.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp index bb2cdb67fa..666b6d976e 100644 --- a/lib/Transforms/Utils/LowerAllocations.cpp +++ b/lib/Transforms/Utils/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); |