aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-10-16 09:14:58 +0000
committerDuncan Sands <baldrick@free.fr>2008-10-16 09:14:58 +0000
commitcceaac69d634c6f610214729678443d849651a0d (patch)
tree6af2cde419a4e5da90e276c26342db56e25db549 /lib/Analysis
parent81c7b7873297f2742ec3ddba0c9c6e80ff85fc59 (diff)
downloadexternal_llvm-cceaac69d634c6f610214729678443d849651a0d.zip
external_llvm-cceaac69d634c6f610214729678443d849651a0d.tar.gz
external_llvm-cceaac69d634c6f610214729678443d849651a0d.tar.bz2
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
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/EscapeAnalysis.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/EscapeAnalysis.cpp b/lib/Analysis/EscapeAnalysis.cpp
index 94e953d..a5a46e1 100644
--- a/lib/Analysis/EscapeAnalysis.cpp
+++ b/lib/Analysis/EscapeAnalysis.cpp
@@ -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
+}