summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-04-10 08:36:24 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-04-10 08:36:24 +0000
commit016ef400c41fee3ba8036c0e8ef26cb48f9365f5 (patch)
tree2a9b77f8e77d48debb99a929dd0c15662257cba3 /llvm
parent8cb243a78fe97ba0ea86893ed2094f4444726879 (diff)
downloadbcm5719-llvm-016ef400c41fee3ba8036c0e8ef26cb48f9365f5.tar.gz
bcm5719-llvm-016ef400c41fee3ba8036c0e8ef26cb48f9365f5.zip
Enhance the diagnostic for literal float -> int conversions to suggest
rewriting the literal when the value is integral. It is not uncommon to see code written as: const int kBigNumber = 42e5; Without any real awareness that this is no longer an ICE. The note helps automate and ease the process of fixing code that violates the warning. llvm-svn: 129243
Diffstat (limited to 'llvm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud