[llvm-commits] [dragonegg] r173450 - /dragonegg/trunk/src/Aliasing.cpp
Duncan Sands
baldrick at free.fr
Fri Jan 25 07:26:17 PST 2013
Author: baldrick
Date: Fri Jan 25 09:26:17 2013
New Revision: 173450
URL: http://llvm.org/viewvc/llvm-project?rev=173450&view=rev
Log:
Suppress a warning about converting size_t to unsigned.
Modified:
dragonegg/trunk/src/Aliasing.cpp
Modified: dragonegg/trunk/src/Aliasing.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Aliasing.cpp?rev=173450&r1=173449&r2=173450&view=diff
==============================================================================
--- dragonegg/trunk/src/Aliasing.cpp (original)
+++ dragonegg/trunk/src/Aliasing.cpp Fri Jan 25 09:26:17 2013
@@ -120,7 +120,7 @@
// If there is a path from this node to any leaf node then it is not a leaf
// node and can be discarded.
- for (unsigned i = 0, e = LeafNodes.size(); i != e; ++i)
+ for (unsigned i = 0, e = (unsigned)LeafNodes.size(); i != e; ++i)
if (alias_set_subset_of(LeafNodes[i], alias_set)) {
NodeTags[alias_set] = 0;
return 0;
@@ -129,7 +129,7 @@
// If there is a path from any leaf node to this one then no longer consider
// that node to be a leaf.
- for (unsigned i = LeafNodes.size(); i;) {
+ for (unsigned i = (unsigned)LeafNodes.size(); i;) {
alias_set_type leaf_set = LeafNodes[--i];
if (alias_set_subset_of(alias_set, leaf_set)) {
LeafNodes.erase(LeafNodes.begin() + i);
More information about the llvm-commits
mailing list