diff options
author | Erich Keane <erich.keane@intel.com> | 2018-05-07 20:52:56 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2018-05-07 20:52:56 +0000 |
commit | 7130a93934707ed10c1a1bab8b423e7c3123a30d (patch) | |
tree | cd3f3e555ef9e4206d1142fdf7ebdfb3e22f6db2 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | 1233e1234ab8466b7997cc0a50683f85061b5e64 (diff) | |
download | llvm-7130a93934707ed10c1a1bab8b423e7c3123a30d.zip llvm-7130a93934707ed10c1a1bab8b423e7c3123a30d.tar.gz llvm-7130a93934707ed10c1a1bab8b423e7c3123a30d.tar.bz2 |
Correct warning on Float->Integer conversions.
As identified and briefly discussed here:
https://bugs.llvm.org/show_bug.cgi?id=37305
Converting a floating point number to an integer type when
the integral part is out of the range of the integer type is
undefined behavior in C. Additionally, CodeGen emits an undef
in this situation.
HOWEVER, we've been giving a warning that says that the value is
changed. This patch corrects the warning to list that it is actually
undefined behavior.
Differential Revision: https://reviews.llvm.org/D46535
llvm-svn: 331673
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions