diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-09-01 21:37:50 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-09-01 21:37:50 +0000 |
| commit | 3dfe01d21e412c113b13e222c0fde9970d258af2 (patch) | |
| tree | 255893ff9ddd01908874f7f5cc57f0958841217b /lib/Analysis/IPA/CallGraphSCCPass.cpp | |
| parent | 0934baa37a70c413600ebc3f2219822cbaf90830 (diff) | |
| download | external_llvm-3dfe01d21e412c113b13e222c0fde9970d258af2.zip external_llvm-3dfe01d21e412c113b13e222c0fde9970d258af2.tar.gz external_llvm-3dfe01d21e412c113b13e222c0fde9970d258af2.tar.bz2 | |
debug intrinsics do not go in the callgraph, this fixes a couple
clang regtest failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/CallGraphSCCPass.cpp')
| -rw-r--r-- | lib/Analysis/IPA/CallGraphSCCPass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/IPA/CallGraphSCCPass.cpp b/lib/Analysis/IPA/CallGraphSCCPass.cpp index b188d30..85f22c7 100644 --- a/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -22,6 +22,7 @@ #include "llvm/PassManagers.h" #include "llvm/Function.h" #include "llvm/Support/Debug.h" +#include "llvm/IntrinsicInst.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; @@ -192,7 +193,7 @@ void CGPassManager::RefreshCallGraph(std::vector<CallGraphNode*> &CurSCC, for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I) { CallSite CS = CallSite::get(I); - if (!CS.getInstruction()) continue; + if (!CS.getInstruction() || isa<DbgInfoIntrinsic>(I)) continue; // If this call site already existed in the callgraph, just verify it // matches up to expectations and remove it from CallSites. |
