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/MachineFunction.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/MachineFunction.h')
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 46d14e1484..97027da7d6 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -165,7 +165,7 @@ public: /// getNumBlockIDs - Return the number of MBB ID's allocated. /// - unsigned getNumBlockIDs() const { return MBBNumbering.size(); } + unsigned getNumBlockIDs() const { return (unsigned)MBBNumbering.size(); } /// RenumberBlocks - This discards all of the MachineBasicBlock numbers and /// recomputes them. This guarantees that the MBB numbers are sequential, @@ -238,7 +238,7 @@ public: reverse_iterator rend () { return BasicBlocks.rend(); } const_reverse_iterator rend () const { return BasicBlocks.rend(); } - unsigned size() const { return BasicBlocks.size(); } + unsigned size() const { return (unsigned)BasicBlocks.size();} bool empty() const { return BasicBlocks.empty(); } const MachineBasicBlock &front() const { return BasicBlocks.front(); } MachineBasicBlock &front() { return BasicBlocks.front(); } @@ -254,7 +254,7 @@ public: /// unsigned addToMBBNumbering(MachineBasicBlock *MBB) { MBBNumbering.push_back(MBB); - return MBBNumbering.size()-1; + return (unsigned)MBBNumbering.size()-1; } /// removeFromMBBNumbering - Remove the specific machine basic block from our |