diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-04-10 08:36:24 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-04-10 08:36:24 +0000 |
commit | 016ef400c41fee3ba8036c0e8ef26cb48f9365f5 (patch) | |
tree | 2a9b77f8e77d48debb99a929dd0c15662257cba3 /llvm | |
parent | 8cb243a78fe97ba0ea86893ed2094f4444726879 (diff) | |
download | bcm5719-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