Fix a crasher: we need to check that the function is non-null before using it!
llvm-svn: 63902
This commit is contained in:
parent
724167c280
commit
5a043f2cb1
|
@ -120,7 +120,7 @@ AliasAnalysis::getModRefBehavior(CallSite CS,
|
|||
AliasAnalysis::ModRefBehavior
|
||||
AliasAnalysis::getModRefBehavior(Function *F,
|
||||
std::vector<PointerAccessInfo> *Info) {
|
||||
if (F->doesNotAccessMemory())
|
||||
if (F && F->doesNotAccessMemory())
|
||||
// Can't do better than this.
|
||||
return DoesNotAccessMemory;
|
||||
return UnknownModRefBehavior;
|
||||
|
|
Loading…
Reference in New Issue