]> granicus.if.org Git - clang/commitdiff
Use getTypeAlignInChars() for alignment in VisitSizeOfAlignOfExpr().
authorKen Dyck <ken.dyck@onsemi.com>
Wed, 27 Jan 2010 12:54:25 +0000 (12:54 +0000)
committerKen Dyck <ken.dyck@onsemi.com>
Wed, 27 Jan 2010 12:54:25 +0000 (12:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94677 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/GRExprEngine.cpp

index 458c0f47369201f2ddbc61d97955c977cad929cc..77715ac6217e44b720ae3ae41b809531a7776855 100644 (file)
@@ -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,