[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Mar 2 14:47:02 PST 2004


Changes in directory llvm/lib/Analysis/DataStructure:

Local.cpp updated: 1.95 -> 1.96

---
Log message:

Really, only if reopen


---
Diffs of the changes:  (+2 -1)

Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.95 llvm/lib/Analysis/DataStructure/Local.cpp:1.96
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.95	Mon Mar  1 13:02:54 2004
+++ llvm/lib/Analysis/DataStructure/Local.cpp	Tue Mar  2 14:46:18 2004
@@ -581,7 +581,8 @@
 
           // If this is freopen, merge the file descriptor passed in with the
           // result.
-          Result.mergeWith(getValueDest(**--CS.arg_end()));
+          if (F->getName() == "freopen")
+            Result.mergeWith(getValueDest(**--CS.arg_end()));
 
           return;
         } else if (F->getName() == "fclose" && CS.arg_end()-CS.arg_begin() ==1){





More information about the llvm-commits mailing list