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/CGException.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGException.cpp') diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 3a7b4d4107b..5b5d8b4f023 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -1039,7 +1039,7 @@ static void InitCatchParam(CodeGenFunction &CGF, CGF.EHStack.pushTerminate(); // Perform the copy construction. - unsigned Alignment = CGF.getContext().getDeclAlign(&CatchParam).getQuantity(); + CharUnits Alignment = CGF.getContext().getDeclAlign(&CatchParam); CGF.EmitAggExpr(copyExpr, AggValueSlot::forAddr(ParamAddr, Alignment, Qualifiers(), AggValueSlot::IsNotDestructed, -- cgit v1.2.3