aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/IPO/IPConstantPropagation.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 /lib/Transforms/IPO/IPConstantPropagation.cpp
parent826c148aa5af36cca688b7da447bc0b22905d904 (diff)
downloadexternal_llvm-7d3056b16038a6a09c452c0dfcc3c8f4e421506a.tar.gz
external_llvm-7d3056b16038a6a09c452c0dfcc3c8f4e421506a.tar.bz2
external_llvm-7d3056b16038a6a09c452c0dfcc3c8f4e421506a.zip
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 'lib/Transforms/IPO/IPConstantPropagation.cpp')
-rw-r--r--lib/Transforms/IPO/IPConstantPropagation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/IPConstantPropagation.cpp b/lib/Transforms/IPO/IPConstantPropagation.cpp
index 03cc542fee..762935e38c 100644
--- a/lib/Transforms/IPO/IPConstantPropagation.cpp
+++ b/lib/Transforms/IPO/IPConstantPropagation.cpp
@@ -94,7 +94,7 @@ bool IPCP::PropagateConstantsIntoArguments(Function &F) {
if (!isa<CallInst>(U) && !isa<InvokeInst>(U))
return false;
- CallSite CS = CallSite::get(cast<Instruction>(U));
+ CallSite CS(cast<Instruction>(U));
if (!CS.isCallee(UI))
return false;
@@ -219,7 +219,7 @@ bool IPCP::PropagateConstantReturn(Function &F) {
// constant.
bool MadeChange = false;
for (Value::use_iterator UI = F.use_begin(), E = F.use_end(); UI != E; ++UI) {
- CallSite CS = CallSite::get(*UI);
+ CallSite CS(*UI);
Instruction* Call = CS.getInstruction();
// Not a call instruction or a call instruction that's not calling F