Ignore some common varargs functions.
authorChris Lattner <sabre@nondot.org>
Fri, 19 Jul 2002 18:11:43 +0000 (18:11 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 19 Jul 2002 18:11:43 +0000 (18:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2973 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/BottomUpClosure.cpp

index 841dd50f43ddcf5b28f7ea2ebfa59031239968d7..d2e8c2151920651c830e80b23a3efbd53f7143f9 100644 (file)
@@ -166,6 +166,12 @@ DSGraph &BUDataStructures::calculateGraph(Function &F) {
             //
             MergeGlobalNodes(Graph->getValueMap(), OldValMap);
 
+            // Erase the entry in the globals vector
+            Globals.erase(Globals.begin()+g--);
+          } else if (FI.getName() == "printf" || FI.getName() == "sscanf" ||
+                     FI.getName() == "fprintf" || FI.getName() == "open" ||
+                     FI.getName() == "sprintf") {
+
             // Erase the entry in the globals vector
             Globals.erase(Globals.begin()+g--);
           }