aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-03-15 03:13:55 +0000
committerTed Kremenek <kremenek@apple.com>2008-03-15 03:13:55 +0000
commit897781ac172d42817d225dc53b0ad31fdc34064e (patch)
treee7df3eab6fb19a477fadf7291913dba48b13be85
parent87e8034faf994b1e13143e6e0b5062a38d979d21 (diff)
Compute alignment in bytes, not bits.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48387 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Analysis/GRExprEngine.cpp2
1 files changed, 1 insertions, 1 deletions
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,