Do not optimise fprintf() calls if its return value is used.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 17 Apr 2013 02:01:10 +0000 (02:01 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 17 Apr 2013 02:01:10 +0000 (02:01 +0000)
commitc7ab4f99beceef00525f9a7df9ef58e63225cc7f
tree78225ec0f6ccf7432281fd6dfa3f3609f30ee2dd
parent8afc8b7e63d5ce2d027e92934d16b19e5ba2db59
Do not optimise fprintf() calls if its return value is used.

Differential Revision: http://llvm-reviews.chandlerc.com/D620

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179661 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/fprintf-1.ll