From: Ted Kremenek Date: Sat, 15 Mar 2008 03:13:55 +0000 (+0000) Subject: Compute alignment in bytes, not bits. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=897781ac172d42817d225dc53b0ad31fdc34064e;p=clang Compute alignment in bytes, not bits. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48387 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Analysis/GRExprEngine.cpp b/Analysis/GRExprEngine.cpp index 5d6c7122c1..fd8d0f5c1d 100644 --- a/Analysis/GRExprEngine.cpp +++ b/Analysis/GRExprEngine.cpp @@ -745,7 +745,7 @@ void GRExprEngine::VisitSizeOfAlignOfTypeExpr(SizeOfAlignOfTypeExpr* Ex, } else // Get alignment of the type. - amt = getContext().getTypeAlign(T); + amt = getContext().getTypeAlign(T) / 8; Nodify(Dst, Ex, Pred, SetRVal(GetState(Pred), Ex,