[clang] [NFC] Move warning from CodeGen to Sema. (PR #107397)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 13 05:48:51 PDT 2024


================
@@ -21,6 +25,7 @@ void a() {
   EVALF((2. + 3i) + (4. + 5i), 6. + 8i);
   EVALF((2. + 3i) - (4. + 5i), -2. - 2i);
   EVALF((2. + 3i) * (4. + 5i), -7. + 22i);
+  // div-precision-warning at +1 {{excess precision is requested but the target does not support excess precision which may result in observable differences in arithmetic behavior ,additional use of 'long double' were found but not diagnosed}}
----------------
AaronBallman wrote:

Yeah, something like `additional uses where the requested higher precision cannot be honored were found but not diagnosed` maybe? Then we drop the type information entirely, which was what was causing my confusion.

https://github.com/llvm/llvm-project/pull/107397


More information about the cfe-commits mailing list