[ModRefInfo] Use createModRefInfo wrapper to create a ModRefInfo from FunctionModRefBehavior.

llvm-svn: 319941
This commit is contained in:
Alina Sbirlea 2017-12-06 19:23:03 +00:00
parent 7654ed03e3
commit 5beb1838bb
1 changed files with 4 additions and 4 deletions

View File

@ -933,11 +933,11 @@ ModRefInfo BasicAAResult::getModRefInfo(ImmutableCallSite CS1,
// possibilities for guard intrinsics.
if (isIntrinsicCall(CS1, Intrinsic::experimental_guard))
return isModSet(ModRefInfo(getModRefBehavior(CS2))) ? MRI_Ref
return isModSet(createModRefInfo(getModRefBehavior(CS2))) ? MRI_Ref
: MRI_NoModRef;
if (isIntrinsicCall(CS2, Intrinsic::experimental_guard))
return isModSet(ModRefInfo(getModRefBehavior(CS1))) ? MRI_Mod
return isModSet(createModRefInfo(getModRefBehavior(CS1))) ? MRI_Mod
: MRI_NoModRef;
// The AAResultBase base class has some smarts, lets use them.