]> granicus.if.org Git - clang/commitdiff
Compute alignment in bytes, not bits.
authorTed Kremenek <kremenek@apple.com>
Sat, 15 Mar 2008 03:13:55 +0000 (03:13 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 15 Mar 2008 03:13:55 +0000 (03:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48387 91177308-0d34-0410-b5e6-96231b3b80d8

Analysis/GRExprEngine.cpp

index 5d6c7122c1bb25649d04e1a84739da429a6ddc55..fd8d0f5c1d61042c68f2471728c8d084f5f3b85f 100644 (file)
@@ -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,