[FunctionAttrs] Slightly clean up returned attr inference (NFC)
authorNikita Popov <npopov@redhat.com>
Wed, 22 Feb 2023 08:31:12 +0000 (09:31 +0100)
committerNikita Popov <npopov@redhat.com>
Wed, 22 Feb 2023 08:32:53 +0000 (09:32 +0100)
commitd3e84953ddbbfc2b6298ae108f5852ba7786e9c8
tree7c25512438157f373055bcf141893404f2bbbb6b
parentc65328305e98a806ae0eb811c7f17e3c5b0c0158
[FunctionAttrs] Slightly clean up returned attr inference (NFC)

Use hasAttrSomewhere() and directly return Argument from the
helper.
llvm/lib/Transforms/IPO/FunctionAttrs.cpp