summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-05-09 07:08:47 +0000
committerDuncan Sands <baldrick@free.fr>2009-05-09 07:08:47 +0000
commitc76fe8b611dc93fffadfb9755ee23b601976ae3a (patch)
tree133aed96e3082741358c665e511d4cf764800b9a /clang/lib/CodeGen/CGCall.cpp
parentaf9eaa830a9e866f61b6e59b448712de52dced25 (diff)
downloadbcm5719-llvm-c76fe8b611dc93fffadfb9755ee23b601976ae3a.tar.gz
bcm5719-llvm-c76fe8b611dc93fffadfb9755ee23b601976ae3a.zip
Correct for renaming PaddedSize -> AllocSize in
LLVM. llvm-svn: 71350
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 265bb7893bb..2223f65acf4 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -1569,8 +1569,8 @@ static llvm::Value *CreateCoercedLoad(llvm::Value *SrcPtr,
CodeGenFunction &CGF) {
const llvm::Type *SrcTy =
cast<llvm::PointerType>(SrcPtr->getType())->getElementType();
- uint64_t SrcSize = CGF.CGM.getTargetData().getTypePaddedSize(SrcTy);
- uint64_t DstSize = CGF.CGM.getTargetData().getTypePaddedSize(Ty);
+ uint64_t SrcSize = CGF.CGM.getTargetData().getTypeAllocSize(SrcTy);
+ uint64_t DstSize = CGF.CGM.getTargetData().getTypeAllocSize(Ty);
// If load is legal, just bitcast the src pointer.
if (SrcSize == DstSize) {
@@ -1608,8 +1608,8 @@ static void CreateCoercedStore(llvm::Value *Src,
const llvm::Type *DstTy =
cast<llvm::PointerType>(DstPtr->getType())->getElementType();
- uint64_t SrcSize = CGF.CGM.getTargetData().getTypePaddedSize(SrcTy);
- uint64_t DstSize = CGF.CGM.getTargetData().getTypePaddedSize(DstTy);
+ uint64_t SrcSize = CGF.CGM.getTargetData().getTypeAllocSize(SrcTy);
+ uint64_t DstSize = CGF.CGM.getTargetData().getTypeAllocSize(DstTy);
// If store is legal, just bitcast the src pointer.
if (SrcSize == DstSize) {
OpenPOWER on IntegriCloud