summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-12-03 02:13:40 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-12-03 02:13:40 +0000
commit38cd36dbdb8c7ee8faccc9c9ac8d57d185553fde (patch)
tree2c0f9c7e739718bdcf80b10fa03936f53afb0d19 /clang/lib/CodeGen/CodeGenFunction.h
parent25f66700038aecf35396c15ee6bdedc98ea04e8f (diff)
downloadbcm5719-llvm-38cd36dbdb8c7ee8faccc9c9ac8d57d185553fde.tar.gz
bcm5719-llvm-38cd36dbdb8c7ee8faccc9c9ac8d57d185553fde.zip
Switch the Alignment argument on AggValueSlot over to CharUnits, per John's review comment.
llvm-svn: 145741
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
1 files changed, 1 insertions, 1 deletions
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,
OpenPOWER on IntegriCloud