diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-07-28 22:50:26 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-07-28 22:50:26 +0000 |
commit | 62f0aac99d5e3c6d2e23e002dd57d9a8f4e6cf2d (patch) | |
tree | d89b0c670cd72edbcc266cc3aaf82c1f2e2bfd57 /llvm/lib/Transforms/IPO/FunctionAttrs.cpp | |
parent | cfc2a57fcdac7ba32ebbd8f4c4b571427ceaabed (diff) | |
download | bcm5719-llvm-62f0aac99d5e3c6d2e23e002dd57d9a8f4e6cf2d.tar.gz bcm5719-llvm-62f0aac99d5e3c6d2e23e002dd57d9a8f4e6cf2d.zip |
simplify by using CallSite constructors; virtually eliminates CallSite::get from the tree
llvm-svn: 109687
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp index 030fe6e219a..0bf150e6e3f 100644 --- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp @@ -162,8 +162,8 @@ bool FunctionAttrs::AddReadAttrs(const CallGraphSCC &SCC) { // Some instructions can be ignored even if they read or write memory. // Detect these now, skipping to the next instruction if one is found. - CallSite CS = CallSite::get(I); - if (CS.getInstruction() && CS.getCalledFunction()) { + CallSite CS(cast<Value>(I)); + if (CS && CS.getCalledFunction()) { // Ignore calls to functions in the same SCC. if (SCCNodes.count(CS.getCalledFunction())) continue; |