HomePhabricator

[TSAN] Fix infinite loop on targets where char is unsigned

Authored by nemanjai on Apr 11 2020, 5:08 AM.

Description

[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.

Details

Committed
nemanjaiApr 11 2020, 5:12 AM
Parents
rG89f6ca05b742: CodeGen/EdgeBundles - move Twine.h include down into EdgeBundles.cpp. NFC.
Branches
Unknown
Tags
Unknown