[llvm] Add the 'initialized' attribute langref and support (PR #84803)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 15 12:55:13 PDT 2024


================
@@ -616,6 +652,23 @@ std::string Attribute::getAsString(bool InAttrGrp) const {
     return Result;
   }
 
+  if (hasAttribute(Attribute::Initialized)) {
+    auto Ranges = getValueAsRanges();
+    if (Ranges.empty())
----------------
aeubanks wrote:

is this allowed? I think we should forbid an empty list

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


More information about the llvm-commits mailing list