diff options
| author | Gabor Greif <ggreif@gmail.com> | 2010-07-28 12:19:46 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2010-07-28 12:19:46 +0000 |
| commit | 5dbb1ac64574b57710fe1a9e1fc0f0bf8a5e9a74 (patch) | |
| tree | d5ca2b035f647cc53c3d24374d716f9f6b65bfc5 /lib | |
| parent | cda66112e2b1954d6c67bc15d334ecd310a28298 (diff) | |
| download | external_llvm-5dbb1ac64574b57710fe1a9e1fc0f0bf8a5e9a74.zip external_llvm-5dbb1ac64574b57710fe1a9e1fc0f0bf8a5e9a74.tar.gz external_llvm-5dbb1ac64574b57710fe1a9e1fc0f0bf8a5e9a74.tar.bz2 | |
use Value* constructor of CallSite to create potentially improper site
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Analysis/IPA/CallGraph.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index 0e474e6..1af0055 100644 --- a/lib/Analysis/IPA/CallGraph.cpp +++ b/lib/Analysis/IPA/CallGraph.cpp @@ -145,8 +145,8 @@ private: for (Function::iterator BB = F->begin(), BBE = F->end(); BB != BBE; ++BB) for (BasicBlock::iterator II = BB->begin(), IE = BB->end(); II != IE; ++II) { - CallSite CS = CallSite::get(II); - if (CS.getInstruction() && !isa<DbgInfoIntrinsic>(II)) { + CallSite CS(cast<Value>(II)); + if (CS && !isa<DbgInfoIntrinsic>(II)) { const Function *Callee = CS.getCalledFunction(); if (Callee) Node->addCalledFunction(CS, getOrInsertFunction(Callee)); |
