Fix a "large integer implicitly truncated to unsigned type"

warning.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50033 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2008-04-21 07:35:28 +00:00
parent ea705199af
commit e47d98200e

View File

@ -264,7 +264,7 @@ BasicAliasAnalysis::getModRefInfo(CallSite CS, Value *P, unsigned Size) {
CI != CE; ++CI)
if (isa<PointerType>((*CI)->getType()) &&
( getUnderlyingObject(*CI) == P ||
alias(cast<Value>(CI), ~0UL, P, ~0UL) != NoAlias) )
alias(cast<Value>(CI), ~0U, P, ~0U) != NoAlias) )
passedAsArg = true;
if (!passedAsArg)