1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Really, only if reopen

llvm-svn: 12080
This commit is contained in:
Chris Lattner 2004-03-02 20:46:18 +00:00
parent ed813111c2
commit 833646d6b8

View 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){