]> granicus.if.org Git - clang/commit
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)
commit0d120a47c7d35cc3ae9a2e375f6f3171ab0e4b96
treede1613cd1f579746154a8a1f09576388b2030b5a
parente240b4198c3888a237782712733321c7ae550119
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213301 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TargetInfo.h
lib/Basic/TargetInfo.cpp
lib/Frontend/InitPreprocessor.cpp
test/Preprocessor/init.c
test/Preprocessor/stdint.c