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 | 6190bb01bede69fa286c280cfe7c662527384142 (patch) | |
tree | 5235fd76568c01252286c7c4c4cdb6048c23b365 /llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp | |
parent | c82555fb8535a5eb1eef636bf85786b9c8a3ce02 (diff) | |
download | bcm5719-llvm-6190bb01bede69fa286c280cfe7c662527384142.tar.gz bcm5719-llvm-6190bb01bede69fa286c280cfe7c662527384142.zip |
debug intrinsics do not go in the callgraph, this fixes a couple
clang regtest failures.
llvm-svn: 80724
Diffstat (limited to 'llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp index b188d3091c8..85f22c7bd42 100644 --- a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/llvm/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. |