[PATCH] D87822: [FPEnv] Evaluate constant expressions under non-default rounding modes

Serge Pavlov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 24 22:42:50 PDT 2020


sepavloff added inline comments.


================
Comment at: clang/lib/AST/ExprConstant.cpp:2438
+/// Check if the given evaluation result is allowed for constant evaluation.
+static bool checkFloatingPointResult(EvalInfo &Info, const Expr *E,
+                                     APFloat::opStatus St) {
----------------
mibintc wrote:
> If the result is this false, shall this routine create a Note diag explaining the false result? 
It makes sense. Added respective diagnostics.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87822/new/

https://reviews.llvm.org/D87822



More information about the cfe-commits mailing list