summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorKen Dyck <ken.dyck@onsemi.com>2010-01-26 13:48:07 +0000
committerKen Dyck <ken.dyck@onsemi.com>2010-01-26 13:48:07 +0000
commit98ca79435a2829b7486a316ad7b12a087472e87d (patch)
tree9fdca667bed17f35e0a0d0e4c4bdf003faa042db /clang/lib/CodeGen/CGDecl.cpp
parentde018dcfad6adda3687effec3d9ea86f246e4a14 (diff)
downloadbcm5719-llvm-98ca79435a2829b7486a316ad7b12a087472e87d.tar.gz
bcm5719-llvm-98ca79435a2829b7486a316ad7b12a087472e87d.zip
Introduce CodeGenModule::GetTargetTypeStoreSize() to calculate the store size
of LLVM types in character units. llvm-svn: 94542
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 23b4ff26a2e..56feee40972 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -559,8 +559,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) {
const llvm::Type *V1;
V1 = cast<llvm::PointerType>(DeclPtr->getType())->getElementType();
V = llvm::ConstantInt::get(llvm::Type::getInt32Ty(VMContext),
- (CGM.getTargetData().getTypeStoreSizeInBits(V1)
- / 8));
+ CGM.GetTargetTypeStoreSize(V1).getQuantity());
Builder.CreateStore(V, size_field);
if (flags & BLOCK_HAS_COPY_DISPOSE) {
OpenPOWER on IntegriCloud