mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01: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 llvm-svn: 27403
This commit is contained in:
parent
cad2bfa3d7
commit
6ce700fbae
@ -225,6 +225,7 @@ public:
|
|||||||
///
|
///
|
||||||
int CreateVariableSizedObject() {
|
int CreateVariableSizedObject() {
|
||||||
HasVarSizedObjects = true;
|
HasVarSizedObjects = true;
|
||||||
|
if (MaxAlignment < 1) MaxAlignment = 1;
|
||||||
Objects.push_back(StackObject(0, 1, -1));
|
Objects.push_back(StackObject(0, 1, -1));
|
||||||
return Objects.size()-NumFixedObjects-1;
|
return Objects.size()-NumFixedObjects-1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user