Only replace fwrite with fputc, if the return value is unused.
authorJoerg Sonnenberger <joerg@bec.de>
Mon, 12 Dec 2011 20:18:31 +0000 (20:18 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Mon, 12 Dec 2011 20:18:31 +0000 (20:18 +0000)
commit127a669d09e21ddcd525f493c19dc399093bef35
tree07a16d55d282531b1a1954a39877b486070d58d8
parent4ab406d7fc06b1272d02cd8be46f0c5ebe51a3da
Only replace fwrite with fputc, if the return value is unused.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146411 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp
test/Transforms/SimplifyLibCalls/fwrite.ll [new file with mode: 0644]