summaryrefslogtreecommitdiff
path: root/tools/opt/AnalysisWrappers.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-07-28 22:50:26 +0000
committerGabor Greif <ggreif@gmail.com>2010-07-28 22:50:26 +0000
commit7d3056b16038a6a09c452c0dfcc3c8f4e421506a (patch)
treeecfdaa7cb750280156bb14f128e9cd08aad7c17b /tools/opt/AnalysisWrappers.cpp
parent826c148aa5af36cca688b7da447bc0b22905d904 (diff)
downloadllvm-7d3056b16038a6a09c452c0dfcc3c8f4e421506a.tar.gz
llvm-7d3056b16038a6a09c452c0dfcc3c8f4e421506a.tar.bz2
llvm-7d3056b16038a6a09c452c0dfcc3c8f4e421506a.tar.xz
simplify by using CallSite constructors; virtually eliminates CallSite::get from the tree
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/AnalysisWrappers.cpp')
-rw-r--r--tools/opt/AnalysisWrappers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp
index f548d007d7..a4891d8d76 100644
--- a/tools/opt/AnalysisWrappers.cpp
+++ b/tools/opt/AnalysisWrappers.cpp
@@ -42,8 +42,8 @@ namespace {
Instruction *User = dyn_cast<Instruction>(*UI);
if (!User) continue;
- CallSite CS = CallSite::get(User);
- if (!CS.getInstruction()) continue;
+ CallSite CS(cast<Value>(User));
+ if (!CS) continue;
for (CallSite::arg_iterator AI = CS.arg_begin(),
E = CS.arg_end(); AI != E; ++AI) {