[PATCH] D123952: [FPEnv] Allow CompoundStmt to keep FP options

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 24 07:20:25 PDT 2022


rjmccall added inline comments.


================
Comment at: clang/lib/Sema/SemaStmt.cpp:452
+                      : getCurCompoundScope().FPFeatures;
+  FPOptionsOverride FPDiff = getCurFPFeatures().diffWith(FPO);
+
----------------
How cheap is this?  Is this something it would be worthwhile to fast-path by maintaining a bit to check for the rare case where we have an override in a scope?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123952



More information about the cfe-commits mailing list