From: Ken Dyck Date: Wed, 27 Jan 2010 12:54:25 +0000 (+0000) Subject: Use getTypeAlignInChars() for alignment in VisitSizeOfAlignOfExpr(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da8e5850414cdb46c5908ac1326e2b92155eb8fb;p=clang Use getTypeAlignInChars() for alignment in VisitSizeOfAlignOfExpr(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94677 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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,