diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-07-28 10:46:09 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-07-28 10:46:09 +0000 |
commit | 2e2503cd8d857c19402d9d0b7dfb539b9a8f0c85 (patch) | |
tree | 688514bb0b685c1c13615d1d72c36d9c22903d64 /llvm/lib/Analysis/AliasSetTracker.cpp | |
parent | 02fbd6b8ce2040770ceb2dff86426a89bc330232 (diff) | |
download | bcm5719-llvm-2e2503cd8d857c19402d9d0b7dfb539b9a8f0c85.tar.gz bcm5719-llvm-2e2503cd8d857c19402d9d0b7dfb539b9a8f0c85.zip |
simplify
llvm-svn: 109577
Diffstat (limited to 'llvm/lib/Analysis/AliasSetTracker.cpp')
-rw-r--r-- | llvm/lib/Analysis/AliasSetTracker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp index b14043e5829..8581f5911d9 100644 --- a/llvm/lib/Analysis/AliasSetTracker.cpp +++ b/llvm/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); |