diff options
author | Mikhail Maltsev <mikhail.maltsev@arm.com> | 2018-02-21 10:08:18 +0000 |
---|---|---|
committer | Mikhail Maltsev <mikhail.maltsev@arm.com> | 2018-02-21 10:08:18 +0000 |
commit | 7b1a950c4af4edbcf51b6b497603173dc4d06ec7 (patch) | |
tree | 97e7562f2d40dde76b4a934eb2de073f67dced4e /lldb/packages/Python/lldbsuite/test/python_api/interpreter/main.c | |
parent | 51f7b63732d28cac92529845cec5f03b93e65d28 (diff) | |
download | bcm5719-llvm-7b1a950c4af4edbcf51b6b497603173dc4d06ec7.tar.gz bcm5719-llvm-7b1a950c4af4edbcf51b6b497603173dc4d06ec7.zip |
[Sema] Classify conversions from enum to float as narrowing
Summary:
According to [dcl.init.list]p7:
A narrowing conversion is an implicit conversion
- ...
- from an integer type or unscoped enumeration type to a
floating-point type, except where the source is a constant
expression and the actual value after conversion will fit into
the target type and will produce the original value when
converted back to the original type, or
- ...
Currently clang does not handle the 'unscoped enumeration' case. This
patch fixes the corresponding check.
Reviewers: faisalv, rsmith, rogfer01
Reviewed By: rogfer01
Subscribers: rogfer01, cfe-commits
Differential Revision: https://reviews.llvm.org/D42545
llvm-svn: 325668
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter/main.c')
0 files changed, 0 insertions, 0 deletions