From 6ce700fbaeaa1bd4ab7d9c77f5c204462b7af873 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 4 Apr 2006 17:39:56 +0000 Subject: [PATCH] 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 --- include/llvm/CodeGen/MachineFrameInfo.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h index 201136d85c0..d6810bf4e5b 100644 --- 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; }