[PATCH] D141796: [15/15][Clang][RISCV][NFC] Set data member under Policy as constants

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 19 00:34:59 PST 2023


craig.topper added inline comments.
Herald added a subscriber: luke.


================
Comment at: clang/include/clang/Support/RISCVVIntrinsicUtils.h:96
 struct Policy {
-  bool IsUnspecified = false;
+  const bool IsUnspecified = false;
   enum PolicyType {
----------------
Should this be a class instead of struct so the members are private?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D141796



More information about the cfe-commits mailing list