[PATCH] D142606: Lazyly initialize uncommon toolchain detector

Markus Böck via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 26 14:56:21 PST 2023


zero9178 added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/LazyDetector.h:26
+
+  mutable std::optional<T> Detector;
+
----------------
Any reason this is `mutable`? I don't see it being used a non-const way in a const method


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142606



More information about the cfe-commits mailing list