mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 00:36:36 +00:00
simplify
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109577 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
756f0d2ab4
commit
b0686ea808
@ -456,8 +456,7 @@ void AliasSetTracker::deleteValue(Value *PtrVal) {
|
||||
|
||||
// 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);
|
||||
|
Loading…
Reference in New Issue
Block a user