From b0686ea808ceb77a16eb728252f3a2a64d4c2caa Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Wed, 28 Jul 2010 10:46:09 +0000 Subject: [PATCH] simplify git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109577 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/AliasSetTracker.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp index b14043e5829..8581f5911d9 100644 --- a/lib/Analysis/AliasSetTracker.cpp +++ b/lib/Analysis/AliasSetTracker.cpp @@ -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); -- 2.34.1