diff options
author | John McCall <rjmccall@apple.com> | 2011-06-09 19:46:27 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-06-09 19:46:27 +0000 |
commit | e669d83a21d7ebf01d3c9e37a20c7348b5a77c11 (patch) | |
tree | 5b426a71d6f3faef1f51e271fb1782225ef3b464 /include/llvm/Analysis/CallGraph.h | |
parent | 6f19c67d8485ae8efe55e0527b3236b03af2c756 (diff) |
Teach the CallGraph to ignore calls to intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/CallGraph.h')
-rw-r--r-- | include/llvm/Analysis/CallGraph.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index 089f322e4a..fb77da7b69 100644 --- a/include/llvm/Analysis/CallGraph.h +++ b/include/llvm/Analysis/CallGraph.h @@ -259,6 +259,9 @@ public: /// addCalledFunction - Add a function to the list of functions called by this /// one. void addCalledFunction(CallSite CS, CallGraphNode *M) { + assert(!CS.getInstruction() || + !CS.getCalledFunction() || + !CS.getCalledFunction()->isIntrinsic()); CalledFunctions.push_back(std::make_pair(CS.getInstruction(), M)); M->AddRef(); } |