commit | 975489d86f0e5c333e36467d84704d022e4ce13d | [log] [tgz] |
---|---|---|
author | Chandler Carruth <chandlerc@gmail.com> | Sun Apr 10 08:36:24 2011 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Sep 14 20:09:15 2020 -0700 |
tree | f9249bf8d189c3335a127097de19c2e2aa38ea8e | |
parent | b894f2ef8efb68d09743c1fb2ebabbc7a046e037 [diff] |
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 GitOrigin-RevId: 016ef400c41fee3ba8036c0e8ef26cb48f9365f5