aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/FormatVariadic.cpp
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2020-04-11 07:08:05 -0500
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2020-04-11 07:12:47 -0500
commit7cc6d0cc90e24a00a6eefd762cac160c795fc420 (patch)
tree2dd5a86793e92b3c125b1df088362930db9ec78c /llvm/lib/Support/FormatVariadic.cpp
parent89f6ca05b742c4ffc4be963d9b653b62cb7739b7 (diff)
downloadllvm-7cc6d0cc90e24a00a6eefd762cac160c795fc420.zip
llvm-7cc6d0cc90e24a00a6eefd762cac160c795fc420.tar.gz
llvm-7cc6d0cc90e24a00a6eefd762cac160c795fc420.tar.bz2
[TSAN] Fix infinite loop on targets where char is unsigned
For targets where char is unsigned (like PowerPC), something like char c = fgetc(...) will never produce a char that will compare equal to EOF so this loop does not terminate. Change the type to int (which appears to be the POSIX return type for fgetc). This allows the test case to terminate normally on PPC.
Diffstat (limited to 'llvm/lib/Support/FormatVariadic.cpp')
0 files changed, 0 insertions, 0 deletions