summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/CPP
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-09-05 22:56:26 +0000
committerJordan Rose <jordan_rose@apple.com>2012-09-05 22:56:26 +0000
commitaee343819532d1fb682f6ad70ad007549a215c1b (patch)
treea0a1d0d7628965d3c5336ac0905a555a7b3ccdf3 /llvm/test/CodeGen/CPP
parent22b7471f43b4912ef9d373ef46e01dec9d0c2c7e (diff)
downloadbcm5719-llvm-aee343819532d1fb682f6ad70ad007549a215c1b.tar.gz
bcm5719-llvm-aee343819532d1fb682f6ad70ad007549a215c1b.zip
Format strings: suggest casts for NS(U)Integer and [SU]Int32 on Darwin.
These types are defined differently on 32-bit and 64-bit platforms, and trying to offer a fixit for one platform would only mess up the format string for the other. The Apple-recommended solution is to cast to a type that is known to be large enough and always use that to print the value. This should only have an impact on compile time if the format string is incorrect; in cases where the format string matches the definition on the current platform, no warning will be emitted. <rdar://problem/9135072&12164284> llvm-svn: 163266
Diffstat (limited to 'llvm/test/CodeGen/CPP')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud