forked from OSchip/llvm-project
[ModRefInfo] Use createModRefInfo wrapper to create a ModRefInfo from FunctionModRefBehavior.
llvm-svn: 319941
This commit is contained in:
parent
7654ed03e3
commit
5beb1838bb
|
@ -933,11 +933,11 @@ ModRefInfo BasicAAResult::getModRefInfo(ImmutableCallSite CS1,
|
||||||
// possibilities for guard intrinsics.
|
// possibilities for guard intrinsics.
|
||||||
|
|
||||||
if (isIntrinsicCall(CS1, Intrinsic::experimental_guard))
|
if (isIntrinsicCall(CS1, Intrinsic::experimental_guard))
|
||||||
return isModSet(ModRefInfo(getModRefBehavior(CS2))) ? MRI_Ref
|
return isModSet(createModRefInfo(getModRefBehavior(CS2))) ? MRI_Ref
|
||||||
: MRI_NoModRef;
|
: MRI_NoModRef;
|
||||||
|
|
||||||
if (isIntrinsicCall(CS2, Intrinsic::experimental_guard))
|
if (isIntrinsicCall(CS2, Intrinsic::experimental_guard))
|
||||||
return isModSet(ModRefInfo(getModRefBehavior(CS1))) ? MRI_Mod
|
return isModSet(createModRefInfo(getModRefBehavior(CS1))) ? MRI_Mod
|
||||||
: MRI_NoModRef;
|
: MRI_NoModRef;
|
||||||
|
|
||||||
// The AAResultBase base class has some smarts, lets use them.
|
// The AAResultBase base class has some smarts, lets use them.
|
||||||
|
|
Loading…
Reference in New Issue