1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

don't bother calling getUnderlyingObject for non-pointers.

llvm-svn: 47272
This commit is contained in:
Chris Lattner 2008-02-18 17:28:21 +00:00
parent a248482a22
commit 57eff5b5f5

View File

@ -262,7 +262,8 @@ BasicAliasAnalysis::getModRefInfo(CallSite CS, Value *P, unsigned Size) {
bool passedAsArg = false;
for (CallSite::arg_iterator CI = CS.arg_begin(), CE = CS.arg_end();
CI != CE; ++CI)
if (getUnderlyingObject(CI->get()) == P)
if (isa<PointerType>((*CI)->getType()) &&
getUnderlyingObject(*CI) == P)
passedAsArg = true;
if (!passedAsArg)