aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineFrameInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen/MachineFrameInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineFrameInfo.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h
index 856fb34bfa..4be3bd474e 100644
--- a/include/llvm/CodeGen/MachineFrameInfo.h
+++ b/include/llvm/CodeGen/MachineFrameInfo.h
@@ -305,9 +305,6 @@ public:
/// a postive identifier to represent it.
///
int CreateStackObject(uint64_t Size, unsigned Alignment) {
- // Keep track of the maximum alignment.
- if (MaxAlignment < Alignment) MaxAlignment = Alignment;
-
assert(Size != 0 && "Cannot allocate zero size stack objects!");
Objects.push_back(StackObject(Size, Alignment, -1));
return Objects.size()-NumFixedObjects-1;
@@ -331,7 +328,6 @@ public:
///
int CreateVariableSizedObject() {
HasVarSizedObjects = true;
- if (MaxAlignment < 1) MaxAlignment = 1;
Objects.push_back(StackObject(0, 1, -1));
return Objects.size()-NumFixedObjects-1;
}