diff options
author | Ken Dyck <ken.dyck@onsemi.com> | 2010-01-27 12:54:25 +0000 |
---|---|---|
committer | Ken Dyck <ken.dyck@onsemi.com> | 2010-01-27 12:54:25 +0000 |
commit | da8e5850414cdb46c5908ac1326e2b92155eb8fb (patch) | |
tree | f60225039fa04ce74d292a59398304523ad7c069 /lib/Checker/GRExprEngine.cpp | |
parent | 48272a078e54d501cb05edd797c54b8e82ceb520 (diff) |
Use getTypeAlignInChars() for alignment in VisitSizeOfAlignOfExpr().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRExprEngine.cpp')
-rw-r--r-- | lib/Checker/GRExprEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Checker/GRExprEngine.cpp b/lib/Checker/GRExprEngine.cpp index 458c0f4736..77715ac621 100644 --- a/lib/Checker/GRExprEngine.cpp +++ b/lib/Checker/GRExprEngine.cpp @@ -2475,7 +2475,7 @@ void GRExprEngine::VisitSizeOfAlignOfExpr(SizeOfAlignOfExpr* Ex, } } else // Get alignment of the type. - amt = CharUnits::fromQuantity(getContext().getTypeAlign(T) / 8); + amt = getContext().getTypeAlignInChars(T); MakeNode(Dst, Ex, Pred, GetState(Pred)->BindExpr(Ex, |