mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
don't bother calling getUnderlyingObject for non-pointers.
llvm-svn: 47272
This commit is contained in:
parent
a248482a22
commit
57eff5b5f5
@ -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
Block a user