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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 10 06:41:51 PDT 2024


================
@@ -6784,6 +6784,10 @@ def warn_arc_lifetime_result_type : Warning<
   "ARC %select{unused|__unsafe_unretained|__strong|__weak|__autoreleasing}0 "
   "lifetime qualifier on return type is ignored">,
   InGroup<IgnoredQualifiers>;
+def warn_next_larger_fp_type_same_size_than_fp : Warning<
+  "higher precision floating-point type requested by user size has the same size"
----------------
AaronBallman wrote:

Could we diagnose from the driver or when we see a pragma requesting the higher-precision type? That would also reduce the chattiness of the diagnostic, I expect.

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


More information about the cfe-commits mailing list