summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-07-17 00:28:22 +0000
committerEric Christopher <echristo@apple.com>2010-07-17 00:28:22 +0000
commit0baaa9bcc18bc22371de8fbacd82dc82599dd151 (patch)
treea200c20c4ab2151bce195f49c0885e7a2e95f1fa /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parent24e3aa011abaffe6d8b9e27cf260a758c3158cb1 (diff)
downloadbcm5719-llvm-0baaa9bcc18bc22371de8fbacd82dc82599dd151.tar.gz
bcm5719-llvm-0baaa9bcc18bc22371de8fbacd82dc82599dd151.zip
Propagate alloca alignment information via variable size object frame
information. No functional change yet. llvm-svn: 108583
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 4a0004a86c8..723e0f0a914 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -2848,7 +2848,7 @@ void SelectionDAGBuilder::visitAlloca(const AllocaInst &I) {
// Inform the Frame Information that we have just allocated a variable-sized
// object.
- FuncInfo.MF->getFrameInfo()->CreateVariableSizedObject();
+ FuncInfo.MF->getFrameInfo()->CreateVariableSizedObject(Align ? Align : 1);
}
void SelectionDAGBuilder::visitLoad(const LoadInst &I) {
OpenPOWER on IntegriCloud