hubert.reinterpretcast added inline comments.
================
Comment at: clang/lib/AST/ASTContext.cpp:6230
/// LHS < RHS, return -1.
int ASTContext::getFloatingTypeOrder(QualType LHS, QualType RHS) const {
FloatingRank LHSR = getFloatingRank(LHS);
----------------
nemanjai wrote:
> hubert.reinterpretcast wrote:
> > I think this function should vocally fail when presented with "unordered"
> > cases.
> But is it possible to emit errors here or should there be code explicitly
> added to Sema to disallow conversions between `__ibm128` and `__float128`
> (and `long double` to/from either of those to which it is not equivalent)?
I did not mean a user-facing error message. I meant that there should be some
form of assertion or internal diagnostic here. I believe `assert` is
appropriate.
I will note that this is a public member function of ASTContext. Regardless of
explicit code in Sema that does what you describe, I think this function should
not present an interface where it does not report "unordered" cases as
unordered.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93377/new/
https://reviews.llvm.org/D93377
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits