summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorKen Dyck <ken.dyck@onsemi.com>2010-01-27 12:54:25 +0000
committerKen Dyck <ken.dyck@onsemi.com>2010-01-27 12:54:25 +0000
commit2c229a7c1781b7921fa9537b282426646a4dd315 (patch)
tree89532caa4431560707a88f57bf2f40c5c4da7976 /clang
parent358e751a7b8d235c3f0a9ceabaf56fe1a6f03ba7 (diff)
downloadbcm5719-llvm-2c229a7c1781b7921fa9537b282426646a4dd315.tar.gz
bcm5719-llvm-2c229a7c1781b7921fa9537b282426646a4dd315.zip
Use getTypeAlignInChars() for alignment in VisitSizeOfAlignOfExpr().
llvm-svn: 94677
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Checker/GRExprEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/GRExprEngine.cpp b/clang/lib/Checker/GRExprEngine.cpp
index 458c0f47369..77715ac6217 100644
--- a/clang/lib/Checker/GRExprEngine.cpp
+++ b/clang/lib/Checker/GRExprEngine.cpp
@@ -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,
OpenPOWER on IntegriCloud