From 897781ac172d42817d225dc53b0ad31fdc34064e Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Sat, 15 Mar 2008 03:13:55 +0000 Subject: [PATCH] Compute alignment in bytes, not bits. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48387 91177308-0d34-0410-b5e6-96231b3b80d8 --- Analysis/GRExprEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.40.0