diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-05-05 18:30:58 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-05-05 18:30:58 +0000 |
commit | 34cd4a484e532cc463fd5a4bf59b88d13c5467c1 (patch) | |
tree | eefdfb1d225da0317e7f7912079c430b5c3ed92c /include/llvm/CodeGen/MachineFrameInfo.h | |
parent | b61bfdb56e1c018f10a2c1c9fb49d7e2a78ed24e (diff) |
Fix more -Wshorten-64-to-32 warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFrameInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineFrameInfo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h index 4cc9073435..592c17f56b 100644 --- a/include/llvm/CodeGen/MachineFrameInfo.h +++ b/include/llvm/CodeGen/MachineFrameInfo.h @@ -193,7 +193,7 @@ public: /// getObjectIndexEnd - Return one past the maximum frame object index... /// - int getObjectIndexEnd() const { return Objects.size()-NumFixedObjects; } + int getObjectIndexEnd() const { return (int)Objects.size()-NumFixedObjects; } /// getObjectSize - Return the size of the specified object /// @@ -311,7 +311,7 @@ public: int CreateStackObject(uint64_t Size, unsigned Alignment) { assert(Size != 0 && "Cannot allocate zero size stack objects!"); Objects.push_back(StackObject(Size, Alignment, -1)); - return Objects.size()-NumFixedObjects-1; + return (int)Objects.size()-NumFixedObjects-1; } /// RemoveStackObject - Remove or mark dead a statically sized stack object. @@ -333,7 +333,7 @@ public: int CreateVariableSizedObject() { HasVarSizedObjects = true; Objects.push_back(StackObject(0, 1, -1)); - return Objects.size()-NumFixedObjects-1; + return (int)Objects.size()-NumFixedObjects-1; } /// getCalleeSavedInfo - Returns a reference to call saved info vector for the |