[clang-tools-extra] [llvm] [LLVM][Support] Move default values out of the storage (PR #184581)

Yevgeny Rouban via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 21:05:19 PST 2026


================
@@ -1722,6 +1722,11 @@ class list : public Option, public list_storage<DataType, StorageClass> {
     Parser.initialize();
   }
 
+protected:
+  bool isDefaultAssigned() const { return DefaultAssigned; }
+  void overwriteDefault() { DefaultAssigned = false; }
+  ArrayRef<OptionValue<DataType>> getDefault() const { return Default; }
+
----------------
yrouban wrote:

I bit strange to see intro of these methods without any usage. May be it makes sense to elaborate on how it is connected with 'fixing mlir use case'?

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


More information about the llvm-commits mailing list