diff options
author | Ken Dyck <ken.dyck@onsemi.com> | 2010-01-27 17:10:57 +0000 |
---|---|---|
committer | Ken Dyck <ken.dyck@onsemi.com> | 2010-01-27 17:10:57 +0000 |
commit | 160146eba2e08602c8e066d6752c792a64afcb6e (patch) | |
tree | 1d1ad2e6436a6d91c628aa6c5168d4c653f1f5d0 /clang/lib/CodeGen/CGBlocks.cpp | |
parent | b925f7707e82b830719220e081c3f11127173d19 (diff) | |
download | bcm5719-llvm-160146eba2e08602c8e066d6752c792a64afcb6e.tar.gz bcm5719-llvm-160146eba2e08602c8e066d6752c792a64afcb6e.zip |
Change the return type of ASTContext::getDeclAlignInBytes() to CharUnits and,
now that the "InBytes" part of the name is implied by the return type, rename
it to getDeclAlign().
llvm-svn: 94681
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 2c32c42ce23..5da6187c517 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -812,8 +812,7 @@ CharUnits BlockFunction::getBlockOffset(const BlockDeclRefExpr *BDRE) { const ValueDecl *D = dyn_cast<ValueDecl>(BDRE->getDecl()); CharUnits Size = getContext().getTypeSizeInChars(D->getType()); - CharUnits Align = - CharUnits::fromQuantity(getContext().getDeclAlignInBytes(D)); + CharUnits Align = getContext().getDeclAlign(D); if (BDRE->isByRef()) { Size = getContext().getTypeSizeInChars(getContext().VoidPtrTy); |