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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 18:57:05 PDT 2024


================
@@ -2332,6 +2335,23 @@ Error BitcodeReader::parseAttributeGroupBlock() {
           i--;
 
           B.addConstantRangeAttr(Kind, MaybeCR.get());
+        } else if (Record[i] == 8) {
+          Attribute::AttrKind Kind;
+          if (Error Err = parseAttrKind(Record[++i], &Kind))
+            return Err;
+          if (!Attribute::isConstantRangeListAttrKind(Kind))
+            return error("Not a constant range list attribute");
+
+          SmallVector<ConstantRange, 2> Val;
+          int RangeSize = Record[++i];
----------------
nikic wrote:

```suggestion
          unsigned RangeSize = Record[++i];
```

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


More information about the llvm-commits mailing list