If char/short are shorter than int, do not use U as suffix for
authorJoerg Sonnenberger <joerg@bec.de>
Thu, 17 Jul 2014 20:12:32 +0000 (20:12 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Thu, 17 Jul 2014 20:12:32 +0000 (20:12 +0000)
commit587deea8755b5adab19350b30c71ec5d2c765bf2
tree8cb9cbed040c6461f870c4b508b670c5ce15b63a
parent11698180c336ea4a077a896b79ab2621fb36585f
If char/short are shorter than int, do not use U as suffix for
constants. Comparing int against a constant of the given type like
UINT8_MAX will otherwise force a promotion to unsigned int, which is
typically not expected.

llvm-svn: 213301
clang/include/clang/Basic/TargetInfo.h
clang/lib/Basic/TargetInfo.cpp
clang/lib/Frontend/InitPreprocessor.cpp
clang/test/Preprocessor/init.c
clang/test/Preprocessor/stdint.c