Fix "large integer implicitly truncated to unsigned type"
authorDuncan Sands <baldrick@free.fr>
Thu, 16 Oct 2008 09:14:58 +0000 (09:14 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 16 Oct 2008 09:14:58 +0000 (09:14 +0000)
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

lib/Analysis/EscapeAnalysis.cpp

index 94e953d460a7858412f3825d38680e53d51cfe1c..a5a46e187e3588401337131e78e2db319b704b80 100644 (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;
-}
\ No newline at end of file
+}