Really, only if reopen
authorChris Lattner <sabre@nondot.org>
Tue, 2 Mar 2004 20:46:18 +0000 (20:46 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 2 Mar 2004 20:46:18 +0000 (20:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12080 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/Local.cpp

index dea8e9f3601e8aa1f940fc5334bb155c8cd64ca2..a313bd5c5663ac649b8b2ae4c0a69770495c65fb 100644 (file)
@@ -581,7 +581,8 @@ void GraphBuilder::visitCallSite(CallSite CS) {
 
           // 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){