Rename PaddedSize to AllocSize, in the hope that this
[oota-llvm.git] / lib / Transforms / Utils / LowerAllocations.cpp
index 9a7f36692fd32cc810663acdee0b561d049391c1..32498958e34f5b8fcbbb835a182ec61b0e36c7d0 100644 (file)
@@ -116,7 +116,7 @@ bool LowerAllocations::runOnBasicBlock(BasicBlock &BB) {
       Value *MallocArg;
       if (LowerMallocArgToInteger)
         MallocArg = ConstantInt::get(Type::Int64Ty,
-                                     TD.getTypePaddedSize(AllocTy));
+                                     TD.getTypeAllocSize(AllocTy));
       else
         MallocArg = ConstantExpr::getSizeOf(AllocTy);
       MallocArg = ConstantExpr::getTruncOrBitCast(cast<Constant>(MallocArg),