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/Analysis/LoopInfo.h | |
parent | b61bfdb56e1c018f10a2c1c9fb49d7e2a78ed24e (diff) | |
download | external_llvm-34cd4a484e532cc463fd5a4bf59b88d13c5467c1.zip external_llvm-34cd4a484e532cc463fd5a4bf59b88d13c5467c1.tar.gz external_llvm-34cd4a484e532cc463fd5a4bf59b88d13c5467c1.tar.bz2 |
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/Analysis/LoopInfo.h')
-rw-r--r-- | include/llvm/Analysis/LoopInfo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index fdb722c..0243a00 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -80,7 +80,7 @@ public: /// Loop ctor - This creates an empty loop. LoopBase() : ParentLoop(0) {} ~LoopBase() { - for (unsigned i = 0, e = SubLoops.size(); i != e; ++i) + for (size_t i = 0, e = SubLoops.size(); i != e; ++i) delete SubLoops[i]; } @@ -847,7 +847,8 @@ public: "This loop should not be inserted here!"); // Check to see if it belongs in a child loop... - for (unsigned i = 0, e = Parent->SubLoops.size(); i != e; ++i) + for (unsigned i = 0, e = static_cast<unsigned>(Parent->SubLoops.size()); + i != e; ++i) if (Parent->SubLoops[i]->contains(LHeader)) { InsertLoopInto(L, Parent->SubLoops[i]); return; |