Fix "large integer implicitly truncated to unsigned type"

warning on x86-64 with gcc-4.3.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57634 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2008-10-16 09:14:58 +00:00
parent 078ae1e6ee
commit ddbe5cbb10

View File

@ -50,7 +50,7 @@ bool EscapeAnalysis::runOnFunction(Function& F) {
for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end();
AI != AE; ++AI) {
if (!isa<PointerType>(AI->getType())) continue;
AliasAnalysis::AliasResult R = AA.alias(Pointer, StoreSize, AI, ~0UL);
AliasAnalysis::AliasResult R = AA.alias(Pointer, StoreSize, AI, ~0U);
if (R != AliasAnalysis::NoAlias) {
EscapePoints.insert(S);
inserted = true;
@ -63,7 +63,7 @@ bool EscapeAnalysis::runOnFunction(Function& F) {
for (Module::global_iterator GI = M->global_begin(), GE = M->global_end();
GI != GE; ++GI) {
AliasAnalysis::AliasResult R = AA.alias(Pointer, StoreSize, GI, ~0UL);
AliasAnalysis::AliasResult R = AA.alias(Pointer, StoreSize, GI, ~0U);
if (R != AliasAnalysis::NoAlias) {
EscapePoints.insert(S);
break;
@ -145,4 +145,4 @@ bool EscapeAnalysis::escapes(Value* A) {
}
return false;
}
}