[cfe-commits] r94677 - /cfe/trunk/lib/Checker/GRExprEngine.cpp
Ken Dyck
ken.dyck at onsemi.com
Wed Jan 27 04:54:25 PST 2010
Author: kjdyck
Date: Wed Jan 27 06:54:25 2010
New Revision: 94677
URL: http://llvm.org/viewvc/llvm-project?rev=94677&view=rev
Log:
Use getTypeAlignInChars() for alignment in VisitSizeOfAlignOfExpr().
Modified:
cfe/trunk/lib/Checker/GRExprEngine.cpp
Modified: cfe/trunk/lib/Checker/GRExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/GRExprEngine.cpp?rev=94677&r1=94676&r2=94677&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/GRExprEngine.cpp (original)
+++ cfe/trunk/lib/Checker/GRExprEngine.cpp Wed Jan 27 06:54:25 2010
@@ -2475,7 +2475,7 @@
}
}
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,
More information about the cfe-commits
mailing list