forked from OSchip/llvm-project
don't bother calling getUnderlyingObject for non-pointers.
llvm-svn: 47272
This commit is contained in:
parent
02d2bc8d3e
commit
8ed77c41d8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue