From b379840cf7e0f6cd151cf8eaf94753b61b84e5d7 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 10 Jul 2008 19:57:25 +0000 Subject: [PATCH] Stack objects have nonnegative indices, not just positive indices. llvm-svn: 53418 --- include/llvm/CodeGen/MachineFrameInfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h index b47ef6738f1..3c9fff68d00 100644 --- a/include/llvm/CodeGen/MachineFrameInfo.h +++ b/include/llvm/CodeGen/MachineFrameInfo.h @@ -55,7 +55,7 @@ public: /// /// To support this, the class assigns unique integer identifiers to stack /// objects requested clients. These identifiers are negative integers for -/// fixed stack objects (such as arguments passed on the stack) or positive +/// fixed stack objects (such as arguments passed on the stack) or nonnegative /// for objects that may be reordered. Instructions which refer to stack /// objects use a special MO_FrameIndex operand to represent these frame /// indexes. @@ -327,7 +327,7 @@ public: } /// CreateStackObject - Create a new statically sized stack object, returning - /// a postive identifier to represent it. + /// a nonnegative identifier to represent it. /// int CreateStackObject(uint64_t Size, unsigned Alignment) { assert(Size != 0 && "Cannot allocate zero size stack objects!");