mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-20 11:08:27 +00:00
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:
parent
078ae1e6ee
commit
ddbe5cbb10
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user