projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e44be60
)
Make sure to consider alignment of variable sized objects.
author
Chris Lattner
<sabre@nondot.org>
Tue, 4 Apr 2006 17:39:56 +0000
(17:39 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 4 Apr 2006 17:39:56 +0000
(17:39 +0000)
This, along with the previous dag combiner fix, fixes
CodeGen/Alpha/2006-04-04-zextload.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27403
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineFrameInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineFrameInfo.h
b/include/llvm/CodeGen/MachineFrameInfo.h
index 201136d85c0ba3159630be2014d263ea729b9f49..d6810bf4e5bad9375be1cb242dca7a86434d8a0e 100644
(file)
--- a/
include/llvm/CodeGen/MachineFrameInfo.h
+++ b/
include/llvm/CodeGen/MachineFrameInfo.h
@@
-225,6
+225,7
@@
public:
///
int CreateVariableSizedObject() {
HasVarSizedObjects = true;
+ if (MaxAlignment < 1) MaxAlignment = 1;
Objects.push_back(StackObject(0, 1, -1));
return Objects.size()-NumFixedObjects-1;
}