diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2022-01-15 22:14:16 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2022-01-15 22:39:31 +0100 |
commit | c63a3175c2947e8c1a2d3bbe16a8586600705c54 (patch) | |
tree | 805c0ccdb58ef753a97ec9c4ee64a707247cbd54 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | c84b8be516bcc4d021ff804169d58a7b3104e050 (diff) | |
download | llvm-c63a3175c2947e8c1a2d3bbe16a8586600705c54.zip llvm-c63a3175c2947e8c1a2d3bbe16a8586600705c54.tar.gz llvm-c63a3175c2947e8c1a2d3bbe16a8586600705c54.tar.bz2 |
[AttrBuilder] Remove ctor accepting AttributeList and Index
Use the AttributeSet constructor instead. There's no good reason
why AttrBuilder itself should exact the AttributeSet from the
AttributeList. Moving this out of the AttrBuilder generally results
in cleaner code.
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index bbd751d..fcf001b 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -1185,7 +1185,7 @@ static bool MayContainThrowingOrExitingCall(Instruction *Begin, static AttrBuilder IdentifyValidAttributes(CallBase &CB) { - AttrBuilder AB(CB.getContext(), CB.getAttributes(), AttributeList::ReturnIndex); + AttrBuilder AB(CB.getContext(), CB.getAttributes().getRetAttrs()); if (!AB.hasAttributes()) return AB; AttrBuilder Valid(CB.getContext()); |