[clang] [clang] Use constant rounding mode for floating literals (PR #90877)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu May 2 14:09:06 PDT 2024
================
@@ -3858,7 +3858,8 @@ static Expr *BuildFloatingLiteral(Sema &S, NumericLiteralParser &Literal,
using llvm::APFloat;
APFloat Val(Format);
- APFloat::opStatus result = Literal.GetFloatValue(Val);
+ APFloat::opStatus result =
----------------
erichkeane wrote:
Does this work right in templates? Can we get a test that validates that a NTTP or Dependent value where the rounding mode is set either around or inside the function does the math right?
https://github.com/llvm/llvm-project/pull/90877
More information about the cfe-commits
mailing list