Basic fix for PR#591; don't convert an fprintf() to an fwrite() if there
authorJohn Criswell <criswell@uiuc.edu>
Wed, 29 Jun 2005 15:03:18 +0000 (15:03 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Wed, 29 Jun 2005 15:03:18 +0000 (15:03 +0000)
commit1d231ec0b04268d40fe9903f6d0b0ae90a500150
treed986604dbd7eeb779c2aade3e43cc48dfce9356a
parent0cab375231b6949acf4630aed28a38d4a7aa592c
Basic fix for PR#591; don't convert an fprintf() to an fwrite() if there
is a mismatch in their character type pointers (i.e. fprintf() prints an
array of ubytes while fwrite() takes an array of sbytes).
We can probably do better than this (such as casting the ubyte to an
sbyte).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22310 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SimplifyLibCalls.cpp