aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-02 20:46:18 +0000
committerChris Lattner <sabre@nondot.org>2004-03-02 20:46:18 +0000
commita19ba52596d97fed401333831ce7857cd333642d (patch)
tree346ec02091a0a10c3e61fede4b83f272b9acf5e7 /lib/Analysis/DataStructure
parentc9699ccce2fa5447466691feec05217188e806e4 (diff)
Really, only if reopen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12080 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure')
-rw-r--r--lib/Analysis/DataStructure/Local.cpp3
1 files changed, 2 insertions, 1 deletions
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){