aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/DataStructure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-26 03:43:43 +0000
committerChris Lattner <sabre@nondot.org>2004-02-26 03:43:43 +0000
commitabcdf80ec6db46342a028c68afc099a82082fd25 (patch)
tree5747e5ea9696accc067d178c1383659a081712c2 /lib/Analysis/DataStructure/DataStructure.cpp
parent1fe9874d1545490a230d6ca3b25e6dfb4c2a9b55 (diff)
The node doesn't have to be _no_ node flags, it just has to be complete and
not have any globals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11863 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r--lib/Analysis/DataStructure/DataStructure.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp
index 686655637b..c04a420faa 100644
--- a/lib/Analysis/DataStructure/DataStructure.cpp
+++ b/lib/Analysis/DataStructure/DataStructure.cpp
@@ -1393,9 +1393,10 @@ static void removeIdenticalCalls(std::vector<DSCallSite> &Calls) {
// If the Callee is a useless edge, this must be an unreachable call site,
// eliminate it.
if (CS.isIndirectCall() && CS.getCalleeNode()->getNumReferrers() == 1 &&
- CS.getCalleeNode()->getNodeFlags() == 0) { // No useful info?
+ CS.getCalleeNode()->isComplete() &&
+ CS.getCalleeNode()->getGlobals.empty()) { // No useful info?
#ifndef NDEBUG
- std::cerr << "WARNING: Useless call site found??\n";
+ std::cerr << "WARNING: Useless call site found.\n";
#endif
CS.swap(Calls.back());
Calls.pop_back();