[Sema] Implement -Wdouble-promotion for clang.

Description

[Sema] Implement -Wdouble-promotion for clang.

GCC has a warning called -Wdouble-promotion, which warns you when
an implicit conversion increases the width of a floating point type.

This is useful when writing code for architectures that can perform
hardware FP ops on floats, but must fall back to software emulation for
larger types (i.e. double, long double).

This fixes PR15109 https://llvm.org/bugs/show_bug.cgi?id=15109.

Thanks to Carl Norum for the patch!

Details

Committed
gbivOct 28 2015, 5:28 PM
Parents
rL251587: Fix Clang-tidy modernize-use-nullptr warnings in include/lldb/Expression and…
Branches
Unknown
Tags
Unknown