Switch LValue so that it exposes alignment in CharUnits. (No functional change.)
llvm-svn: 145753
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index eabc201..8a305fd 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -434,7 +434,7 @@
// Update the LValue.
LV.setAddress(Dest);
- unsigned Align = CGF.getContext().getTypeAlignInChars(T).getQuantity();
+ CharUnits Align = CGF.getContext().getTypeAlignInChars(T);
LV.setAlignment(std::min(Align, LV.getAlignment()));
}