diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-02 20:46:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-02 20:46:18 +0000 |
commit | a19ba52596d97fed401333831ce7857cd333642d (patch) | |
tree | 346ec02091a0a10c3e61fede4b83f272b9acf5e7 /lib/Analysis/DataStructure/Local.cpp | |
parent | c9699ccce2fa5447466691feec05217188e806e4 (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/Local.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/Local.cpp | 3 |
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){ |