aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-31 18:13:19 +0000
committerChris Lattner <sabre@nondot.org>2004-10-31 18:13:19 +0000
commitf49856824093f2f0cde636d42a106c757b90816f (patch)
tree8662a2d7eb03222f4d3e565bb379bf490604274a /lib
parent15e4f7430c1ad7fa4a7ef2d036a9cfbb862b52d5 (diff)
downloadexternal_llvm-f49856824093f2f0cde636d42a106c757b90816f.zip
external_llvm-f49856824093f2f0cde636d42a106c757b90816f.tar.gz
external_llvm-f49856824093f2f0cde636d42a106c757b90816f.tar.bz2
Fix another bug in Prolangs-C++/objects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17372 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/DataStructure/EquivClassGraphs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/DataStructure/EquivClassGraphs.cpp b/lib/Analysis/DataStructure/EquivClassGraphs.cpp
index 92e7a3b..c125aa7 100644
--- a/lib/Analysis/DataStructure/EquivClassGraphs.cpp
+++ b/lib/Analysis/DataStructure/EquivClassGraphs.cpp
@@ -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