git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109577
91177308-0d34-0410-b5e6-
96231b3b80d8
// If this is a call instruction, remove the callsite from the appropriate
// AliasSet.
// If this is a call instruction, remove the callsite from the appropriate
// AliasSet.
- CallSite CS = CallSite::get(PtrVal);
- if (CS.getInstruction())
+ if (CallSite CS = PtrVal)
if (!AA.doesNotAccessMemory(CS))
if (AliasSet *AS = findAliasSetForCallSite(CS))
AS->removeCallSite(CS);
if (!AA.doesNotAccessMemory(CS))
if (AliasSet *AS = findAliasSetForCallSite(CS))
AS->removeCallSite(CS);