[clang] [clang] Use current rounding mode for float inc/dec (PR #73770)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 07:28:38 PST 2023


================
@@ -4623,10 +4623,12 @@ struct IncDecSubobjectHandler {
     if (Old) *Old = APValue(Value);
 
     APFloat One(Value.getSemantics(), 1);
+    llvm::RoundingMode RM =
+        E->getFPFeaturesInEffect(Info.Ctx.getLangOpts()).getRoundingMode();
----------------
tbaederr wrote:

Shouldn't this use `getActiveRoundingMode()`?

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


More information about the cfe-commits mailing list