From 38cd36dbdb8c7ee8faccc9c9ac8d57d185553fde Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 3 Dec 2011 02:13:40 +0000 Subject: Switch the Alignment argument on AggValueSlot over to CharUnits, per John's review comment. llvm-svn: 145741 --- clang/lib/CodeGen/CodeGenFunction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.h') diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 39a0bfc2f1e..74f48c3d805 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1574,7 +1574,7 @@ public: /// CreateAggTemp - Create a temporary memory object for the given /// aggregate type. AggValueSlot CreateAggTemp(QualType T, const Twine &Name = "tmp") { - unsigned Alignment = getContext().getTypeAlignInChars(T).getQuantity(); + CharUnits Alignment = getContext().getTypeAlignInChars(T); return AggValueSlot::forAddr(CreateMemTemp(T, Name), Alignment, T.getQualifiers(), AggValueSlot::IsNotDestructed, -- cgit v1.2.3