diff options
author | Andreas Jonson <andjo403@hotmail.com> | 2024-04-30 02:42:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 09:42:31 +0900 |
commit | 9a1386e5fabb0d2741f2f7c873342eb86e350e9e (patch) | |
tree | c34eafc0be90e6a7e02660dbe804e0fa4f05e7b9 /llvm/lib/IR/Attributes.cpp | |
parent | ce3485a0cd12b45c725f008a7836e71a1d72df49 (diff) | |
download | llvm-9a1386e5fabb0d2741f2f7c873342eb86e350e9e.zip llvm-9a1386e5fabb0d2741f2f7c873342eb86e350e9e.tar.gz llvm-9a1386e5fabb0d2741f2f7c873342eb86e350e9e.tar.bz2 |
[NFC] Remove method from FoldingSet that already existed in APInt. (#90486)
Noticed that there already was a function in APInt that updated a
FoldingSet so there was no need for me to add it in
https://github.com/llvm/llvm-project/pull/84617.
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 9c48a48..9f27f17 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -173,8 +173,8 @@ Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, LLVMContextImpl *pImpl = Context.pImpl; FoldingSetNodeID ID; ID.AddInteger(Kind); - ID.AddInteger(CR.getLower()); - ID.AddInteger(CR.getUpper()); + CR.getLower().Profile(ID); + CR.getUpper().Profile(ID); void *InsertPoint; AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); |