simplify
authorGabor Greif <ggreif@gmail.com>
Wed, 28 Jul 2010 10:46:09 +0000 (10:46 +0000)
committerGabor Greif <ggreif@gmail.com>
Wed, 28 Jul 2010 10:46:09 +0000 (10:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109577 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/AliasSetTracker.cpp

index b14043e58290c35fdcc40568580077b254999aa6..8581f5911d9dbd3e866bca413ade92b505246ed7 100644 (file)
@@ -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);