From a19ba52596d97fed401333831ce7857cd333642d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 2 Mar 2004 20:46:18 +0000 Subject: Really, only if reopen git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12080 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/Local.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Analysis/DataStructure/Local.cpp') diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp index dea8e9f360..a313bd5c56 100644 --- a/lib/Analysis/DataStructure/Local.cpp +++ b/lib/Analysis/DataStructure/Local.cpp @@ -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){ -- cgit v1.2.3-18-g5258