[PATCH] D125723: [MSVC] Add support for MSVC pragma optimize

Stephen Long via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 13 11:00:42 PDT 2022


steplong added inline comments.


================
Comment at: clang/include/clang/Sema/Sema.h:768
+  /// (i.e. `ModifyFnAttributeMSPragmaOptimze()` does nothing)
+  bool MSPragmaOptimizeIsOn = true;
+
----------------
This might be confusing. `ModifyFnAttributeMSPragmaOptimize()` adds optnone to functions if `MSPragmaOptimizeIsOn` is false and `MSPragmaOptimizeValidParams` is empty.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125723



More information about the cfe-commits mailing list