1
0
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:
Chris Lattner 2006-04-04 17:39:56 +00:00
parent cad2bfa3d7
commit 6ce700fbae

View File

@ -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;
}