From: Gabor Greif Date: Wed, 28 Jul 2010 10:46:09 +0000 (+0000) Subject: simplify X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b0686ea808ceb77a16eb728252f3a2a64d4c2caa;p=oota-llvm.git simplify git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109577 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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);