diff options
| author | Rahul Joshi <rjoshi@nvidia.com> | 2024-10-18 07:50:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-18 07:50:22 -0700 |
| commit | 62e2c7fb2d18b43149a07526f6a3c0563d50e2fa (patch) | |
| tree | 6e9647e041e572c32b17983a32fce0c5e8e4f06d /llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp | |
| parent | c27aae0035d2cf490c02a0cc0e2e1fbe4f12512a (diff) | |
[LLVM][TableGen] Change all `Init` pointers to const (#112705)
This is a part of effort to have better const correctness in TableGen
backends:
https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
Diffstat (limited to 'llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp')
| -rw-r--r-- | llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp b/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp index 2a246d60de61..18e0b8fd135b 100644 --- a/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp +++ b/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp @@ -324,7 +324,7 @@ CodeGenIntrinsic::CodeGenIntrinsic(const Record *R, IS.ParamTys.push_back(TypeList->getElementAsRecord(Idx)); // Parse the intrinsic properties. - ListInit *PropList = R->getValueAsListInit("IntrProperties"); + const ListInit *PropList = R->getValueAsListInit("IntrProperties"); for (unsigned i = 0, e = PropList->size(); i != e; ++i) { const Record *Property = PropList->getElementAsRecord(i); assert(Property->isSubClassOf("IntrinsicProperty") && |
