From b5ecd2e378fbc994c458980177b76c2f499e5cc7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 13 Mar 2005 20:22:10 +0000 Subject: [PATCH] The incoming arguments to main (the argv list) are not complete! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20584 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/DataStructure.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 58a0aa577c2..9e97b8a3dbc 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -1482,10 +1482,9 @@ void DSGraph::markIncompleteNodes(unsigned Flags) { for (ReturnNodesTy::iterator FI = ReturnNodes.begin(), E =ReturnNodes.end(); FI != E; ++FI) { Function &F = *FI->first; - if (F.getName() != "main") - for (Function::aiterator I = F.abegin(), E = F.aend(); I != E; ++I) - if (isPointerType(I->getType())) - markIncompleteNode(getNodeForValue(I).getNode()); + for (Function::aiterator I = F.abegin(), E = F.aend(); I != E; ++I) + if (isPointerType(I->getType())) + markIncompleteNode(getNodeForValue(I).getNode()); markIncompleteNode(FI->second.getNode()); }