mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-09 05:57:23 +00:00
Make sure to consider alignment of variable sized objects.
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
This commit is contained in:
parent
e44be60ee9
commit
5cdf4bd55c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user