Fix another bug in Prolangs-C++/objects
authorChris Lattner <sabre@nondot.org>
Sun, 31 Oct 2004 18:13:19 +0000 (18:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 31 Oct 2004 18:13:19 +0000 (18:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17372 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/EquivClassGraphs.cpp

index 92e7a3b2e08d4dc811cd59b9fd534b93f1a01d6c..c125aa7ef7da1a09cdaabceb4e3a975019e181e3 100644 (file)
@@ -171,7 +171,8 @@ void PA::EquivClassGraphs::buildIndirectFunctionSets(Module &M) {
       // Record the argument nodes for use in merging later below
       EquivClassGraphArgsInfo& GraphInfo = getECGraphInfo(mergedG);
       for (Function::aiterator AI1 = LF->abegin(); AI1 != LF->aend(); ++AI1)
-        GraphInfo.argNodes.push_back(mergedG->getNodeForValue(AI1));
+        if (DS::isPointerType(AI1->getType()))
+          GraphInfo.argNodes.push_back(mergedG->getNodeForValue(AI1));
       
       // Merge in the graphs of all other functions in this equiv. class.
       // Note that two or more functions may have the same graph, and it