erik.pilkington marked an inline comment as done. erik.pilkington added inline comments.
================ Comment at: clang/lib/Sema/SemaChecking.cpp:10634 + // warning. + else if (ResultBT->isFloatingPoint() && ResultBT->getKind() < RBT->getKind() && + // We don't want to warn for system macro. ---------------- rjmccall wrote: > Yeah, can we just make a predicate function for this rank comparison? And > really it shouldn't be based on rank: while a difference in FP rank *often* > corresponds to a difference in representable range, there are exceptions > (notably with `long double` on non-x86 targets (as well as Win64) which is > often equivalent to either `double` or `__float128`), and we should probably > treat those like we do the integer types, i.e. ignore them. There is another place that we're doing this in this file, so I put it in a follow up: https://reviews.llvm.org/D58254. Thanks! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D58145/new/ https://reviews.llvm.org/D58145 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits